cobra
cobra copied to clipboard
How can I create commands preceded by variable arguments
Hi, I'm trying to do something similar to how taskwarrior
works. They have an interface like:
task 45 complete
task 242 delete
In this case the 45 is a filter which could be anything. In this case it's the ID of the task.
I'm not sure how I can achieve this with cobra
, or even if it's possible.
Any ideas?
Love this library by the way, absolutely stellar work. <3
The Cobra project currently lacks enough contributors to adequately respond to all issues. This bot triages issues and PRs according to the following rules:
- After 60d of inactivity, lifecycle/stale is applied. - After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied and the issue is closed. You can:
- Make a comment to remove the stale label and show your support. The 60 days reset. - If an issue has lifecycle/rotten and is closed, comment and ask maintainers if they'd be interseted in reopening