Skip to content

SwagDevOps/bohu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

159 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bohu

Bohu is intended to easyfy filesystem and administrative tasks, it provides an application programming interface (API) to an abstract operating system making it easier and quicker to develop code for multiple software or platforms.

Shell

Bohu provides sh, capture and capture! low-level methods. And, configuration permits new methods declaration, using dialects.

# config.yml
commands:
  adduser:
    actions:
      create_user:
        assign_password: false
        login_shell:
          - '%<login_shell>s'
          - '/bin/bash'
          login: '%<login>s'
# dialects/default/adduser.yml
system: ['-S', true]
login_shell: ['-s', '%<login_shell>s']
assign_password: ['-D', false]

Commands are built from commands configuration, and uses a dialect. Dialect is responsible to transform known options into command line options. Config permits to choose used dialect by a command:

commands:
   adduser:
     dialect: default
     executable: adduser

Dialects paths can be added by configuration:

dialects:
  paths:
    - dialects

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors