AnswerDotAI / AnswerDotAI/nbz

Add `as_command` decorator to simplify adding of new commands

Open
#52 0 comments 0 reactions 1 assignee Claimed by @pydanny View on GitHub
enhancement
Dominant language
Jupyter Notebook
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Convert this:

```python
nbdev_thing = thing.nbdev_thing.__wrapped__ # remove call_parse

@delegates(nbdev_thing)
def thing(**kwargs):
nbdev_thing(**kwargs)
nbdev_thing.rich_help_panel = 'Amazing thing'
nbdev_thing.no_args_is_help=False
```

to this:

```python
@as_command('Amazing thing')
@delegates(nbdev_thing)
def thing(**kwargs):
nbdev_thing(**kwargs)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.