decorators to annotate functions as commmands
Open
Nobody has claimed this yet.
area/arguments
area/commands
type/discussion
type/enhancement
- Dominant language
- Python
- Stars
- 358
- Forks
- 101
- PR merge metrics
- No merged PRs in 30d
Description
something like
@Command
@Argument('--id', type=int, help='My name', desc='ID of some kind')
@Argument('--name', type=str, help='My name', desc='is my name')
createRecord(id, name):
`...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue proposes @Command and @Argument decorators for a createRecord function but names no files or tests. Start by locating knack's command registration and argument parsing entry points, then define the decorator API and verify that the shown example can register the command and its arguments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100