Comments (8)
@larsks Want to take this one?
from risu.
Sure!
from risu.
So, the problem here is that without --live, we assume that the first argument is a filesystem snapshot. What if we were to change the behavior so that by default citellus would run in live mode, and an explicit snapshot argument would be required for snapshot mode? So on a live system you would run:
citellus
And for sos reports you would run:
citellus --snapshot /cases/123456/...
This would allow --list-plugins
to work without introducing some convoluted logic to use different plugin path semantics with --list-plugins
than we use for actual citellus runs.
from risu.
Wouldn't running the check for --list-plugins be executed earlier allow to keep actual behaviour?
For example:
change the actual else at line 304:
for:
elif not options.list_plugins:
# This will execute if options.list_plugins is set to false, hence, exitting if not Live is active
from risu.
Right, but at the moment we can only do plugin discovery in general after deciding whether we're in live mode or not. We could also do plugin discovery earlier for --list-plugins
, but then we'd need it in two places, which is silly. Or we would need some sort of "if --live
or --list-plugins
..." then logic.
Making the snapshot path an explicit argument rather than an implicit argument would make everything nicer.
from risu.
I do use it mostly against snapshots, so having to declare it will be more typing afaik.
from risu.
@larsks @iranzo Explicit is better than Implicit. We can add argument -s/--snapshot that will not add too much typing and code will be more read-able, it will be easier and less prone to errors. Agree?
from risu.
Not requiring to modify already existing docs and integrations approach: http://review.gerrithub.io/377922
from risu.
Related Issues (20)
- Broken link found (https://docs.github.com/en/github/site-policy/github-privacy-statement)
- Runtime metadata with local time instead of UTC HOT 7
- Broken link found (https://docs.github.com)
- Broken link found (https://docs.github.com/articles/which-remote-url-should-i-use)
- Broken link found (https://docs.github.com/en/github/site-policy/github-terms-of-service)
- Broken link found (https://docs.github.com/en/github/site-policy/github-privacy-statement)
- Broken link found (https://www.githubstatus.com/)
- Broken link found (https://developer.apple.com/xcode/)
- Broken link found (/risuorg/risu/commit/51cb06130dd2da03bc28e062fbee82d91607b3dd)
- Broken link found (/risuorg/risu/search?l=python)
- Broken link found (/risuorg/risu/search?l=shell)
- Broken link found (/risuorg/risu/search?l=html)
- Broken link found (/risuorg/risu/search?l=python)
- Broken link found (https://education.github.com)
- Broken link found (/risuorg/risu/search?l=python)
- Broken link found (/risuorg/risu/search?l=shell)
- Broken link found (/risuorg/risu/search?l=html)
- Broken link found (/risuorg/risu/search?l=python)
- Broken link found (/risuorg/risu/search?l=shell)
- Broken link found (/risuorg/risu/search?l=html)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from risu.