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 a CLI #38
Added a CLI #38
Conversation
- Added *very* basic epispot CLI functionality - See `bin/requirements.txt` for CLI requirements - Fire up a terminal and enter ```shell $ epispot about ```
Added changelog separate from README.md for nightly package
- Added bin/ to .coveragerc - Renamed bin/epispot to bin/epispot.py in workflow so that it is tracked by coverage.py
Invoked via test_invoke.py
Ready for PR
Found in bin/requirements.txt
Codecov Report
@@ Coverage Diff @@
## nightly #38 +/- ##
========================================
Coverage 98.27% 98.27%
========================================
Files 6 6
Lines 464 464
========================================
Hits 456 456
Misses 8 8 Continue to review full report at Codecov.
|
Ready to merge after workflow approvals from @Quantalabs |
This pull request introduces 3 alerts when merging 200f5d7 into 6ba3f5e - view on LGTM.com new alerts:
|
|
||
if __name__ == '__main__': | ||
fire.Fire(Shell( | ||
color=__color__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you using a library like termcolor for terminal string styling? You can use the python built-in ANSI escape codes which are much more customizable, such as italics or underlined
Using #40 instead; keeping this PR as a backup in case anything goes wrong. |
Will re-open if any bad problems turn up in #40 |
Co-authored-by: QLabs <55121845+Quantalabs@users.noreply.github.com>
This pull request introduces 3 alerts when merging 73b216c into 69e6d96 - view on LGTM.com new alerts:
|
Basic CLI Structure Implemented
New Feature
This PR adds a basic built-in CLI to epispot nightly that comes preinstalled with setup.py. The keyword to initiate it is
epispot
followed by a command. Currently the only available command isabout
. The shell usesFire
andtermcolor
as dependencies although it can run withouttermcolor
by suppressing color (see the__color__
flag). To test the shell, run:Known Issues
parameter substitutions that will be implemented in another branch.
Code Breakdown
scripts
indicator to addepispot
to the command lineAdditional Notes
Similar to branch #cli
Ideally merge when:
Ignoring: