Add support for command line parameters and reading commands from config file.#5
Open
gfto wants to merge 3 commits intoob-encoder:masterfrom
Open
Add support for command line parameters and reading commands from config file.#5gfto wants to merge 3 commits intoob-encoder:masterfrom
gfto wants to merge 3 commits intoob-encoder:masterfrom
Conversation
added 3 commits
November 21, 2014 14:19
This patch adds support for running OBE like any other program that needs configuration. Save the commands that you usually type into OBE shell in regular text file and then run 'obecli --config-file=my.conf' and you are good to go. NOTE: There is possible change in behaviour! After this patch the interactive shell is run only if there are no command line parameters after 'obecli' or '-s'/'--shell' parameter is used.
|
I agree, config file is a nice start. Though I might go one step further and put a proper API on the system. The packages are a bit dated though. Project looks abandoned |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Configuring obe using 'screen' hacks is not the best way for setting up the encoder, so I've added support for reading the commands from config file. This allows me to run obe using process supervision which is a nice thing (not that obe crashes but better safe than sorry).
Another small feature is --full-help parameter that lists what commands obe supports.