Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include("") mnemonic for library support #47

Open
dgtlrift opened this issue Sep 3, 2015 · 1 comment
Open

include("") mnemonic for library support #47

dgtlrift opened this issue Sep 3, 2015 · 1 comment

Comments

@dgtlrift
Copy link

dgtlrift commented Sep 3, 2015

Not sure if BatSh already supports this, but having "library" support where library batsh scripts can be included in the parent BatSh script can provide a means of modularizing support.

ie - assuming that batsh supported the concept of global automatic variables like argc and argv, someone could write a batsh script library like gotopt.batsh that a parent script could include with:
include("getopt.batsh");

The output in either batch or bash could be one monolithic file that includes all the logic of the libraries or break each down into their own generated code file to be evaled or however to include the logic.

@dgtlrift dgtlrift changed the title include mnemonic include("") mnemonic for library support Sep 3, 2015
@operatorequals
Copy link

My answer on this issue might help:
#58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants