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

Added option to run resource script on startup #115

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

TheTechromancer
Copy link

I added an "-rc" argument which allows the user to specify a file containing commands to run (as if interactively) immediately upon startup.

Just a few basic changes:

  1. Add "-rc" argument in main.go
  2. Split DoWork() into an additional function for processing a single command, ProcessCommand()
  3. Create ProcessResourceFile() function to read the script and execute its contents
  4. Update readme

Thanks!

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

Successfully merging this pull request may close these issues.

1 participant