Comments (3)
Ah it gets worse. celery beat --help
:
Usage: celery beat [OPTIONS]
Start the beat periodic task scheduler.
Beat Options:
--detach Detach and run in the background as a
daemon.
-s, --schedule TEXT Path to the schedule database. Defaults to
`celerybeat-schedule`.The extension '.db'
may be appended to the filename.
-S, --scheduler TEXT Scheduler class to use.
--max-interval INTEGER Max seconds to sleep between schedule
iterations.
-l, --loglevel [DEBUG|INFO|WARNING|ERROR|CRITICAL|FATAL]
Logging level.
Daemonization Options:
-f, --logfile TEXT Log destination; defaults to stderr
--pidfile TEXT
--uid TEXT
--gid TEXT
--umask TEXT
--executable TEXT
Options:
--help Show this message and exit.
rich-click celery beat --help
:
Usage: celery beat [OPTIONS]
Start the beat periodic task scheduler.
Beat Options:
--detach
Detach and run in the background as a daemon.
-s, --schedule TEXT
Path to the schedule database. Defaults to `celerybeat-
schedule`.The extension '.db' may be appended to the filename.
-S, --scheduler TEXT
Scheduler class to use.
--max-interval INTEGER
Max seconds to sleep between schedule iterations.
-l, --loglevel [DEBUG|INFO|WARNING|ERROR|CRITICAL|FATAL]
Logging level.
Daemonization Options:
-f, --logfile TEXT
Log destination; defaults to stderr
--pidfile TEXT
--uid TEXT
--gid TEXT
--umask TEXT
--executable TEXT
Options:
--help
Show this message and exit.
Note this is specific to 1.8.0dev. 1.7.3 does not have this issue. I have a feeling why that is the case, but I will have to look deeper.
from rich-click.
Figured out what's going on pretty quickly with the subcommand and I'll have a fix for that, but the main command I will have to dig into.
from rich-click.
Ahhh, figured it out. TLDR, this is a bug in 1.8.0dev, and it arises due to the order of how Click stuff is loaded now with the lazy-loading.
This is entirely fixable, and in that sense it's not a big deal.
What is a big deal is this is a big pain to safeguard against in tests, since the tests all share the same sys.modules
and the same click
module, normally invoked test cases of click Groups will contain false passes. I need to think about how to guard against this!
from rich-click.
Related Issues (20)
- Expose a way to send usage information to stderr HOT 9
- Rich-Click does not translate the ascii codes into colors on windows 64 cmd.exe anymore HOT 3
- support providing a default/global `option_groups` config to apply to all commands HOT 7
- Unit tests should assert output to stderr on errors
- Either update or deprecate MacPorts install HOT 5
- `text_markup: Literal["rich", "markdown", "rst", None]` config option HOT 1
- Additional style options HOT 1
- `rich-click` CLI for version `1.8.0dev1` breaks backwards compatibility in edge case
- 1.9 wishlist
- 2.0 roadmap
- 'RichGroup' object has no attribute 'isolation' HOT 2
- Bugs (a) generating svg/html with decorator. (b) with root directory scripts HOT 1
- Interim blog post - "5 cool pre-made styles for your CLI" (title tentative)
- Color part of the help massage HOT 8
- OptionHighlighter is deprecated and will be removed in a future version. HOT 6
- Invalid MRO when importing rich_click HOT 4
- Continuting to receive "DeprecationWarning: OptionHighlighter is deprecated" as of 1.8.1 HOT 4
- Fix warning (again)
- Show commands before options HOT 5
- Grouped `--help` output is not shown for `__main__.py` CLIs (`python -m foo`) / add support for `prog_name` HOT 2
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 rich-click.