Skip to content

masterjg/bash-functions-autoloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BASH functions autoloader

Very simple idea to autoload namespaced BASH functions.

Just source the loader source __loader.sh and magic happens! All your functions in the subfolders will automatically be namespaced, i.e.:

__loader.sh
[network]
	mount_nfs.sh
	set_hostname.sh
	[optional]
		xxx.sh

Will autoload functions with these names:

  • network.mount_nfs
  • network.set_hostname
  • network.optional.xxx

Cool right? ;)

How to use the autoloader

Look into the example folder

Author

Marius Guščius

About

Simple yet very effective idea on how to recursively autoload namespaced bash functions

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages