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

Move configuration options to config file / CLI arguments #2

Open
m4chinations opened this issue Mar 7, 2017 · 1 comment
Open

Comments

@m4chinations
Copy link
Contributor

We should use https://github.com/substack/minimist as a dep to parse some command line arguments that are currently hard coded such as station, cloud backup true/false, spinitron credentials, and destination and temporary directories, and extra recording buffer time (currently set to 2 minutes). If these command line arguments are not present, we should look for them in a .config file.

-s STATION_NAME
-spinuser SPINITRON_USER
-spinsecret SPINITRON_SECRET
-tempdir TEMP_RECORDING_DIRECTORY
-d FINAL OUTPUT DIRECTORY
-b BUFFER_TIME (extra time to record after show_duration)
-h HELP
-backup TRUE/FALSE BACKUP FLAG
-c CONFIG_FILE

@m4chinations
Copy link
Contributor Author

o shit this looks good https://github.com/motdotla/dotenv

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

No branches or pull requests

1 participant