Skip to content

kunik/wtfbash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

WTF-bash

This repository represents our tries to gain world domination using bash

OOP

Bash can do OOP didn't you know?

Look at this:

User() {
    var name $1
    var age $2
    var sex $3
}

User.register() {
    echo "Registered user with name $(var name), age $(var age) and sex $(var sex)" 
    $this.postRegister
}

User.postRegister() {
    echo "Executing %${__METHOD__}"
}

new User user 'Vasya' 16 'yes'
$user.register

Isn't it nice?

Bitdeli Badge

About

bash magic

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages