Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support param fn #52

Merged
merged 4 commits into from
Mar 13, 2023
Merged

feat: support param fn #52

merged 4 commits into from
Mar 13, 2023

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Mar 13, 2023

We use param fn to get default value and generate choices.

# @arg arg9=`_fn`      A positional argument with defaulf value from fn
# @arg arg10[`_fn`]    A positional argument with choices from fn
# @arg arg11![`_fn`]   A required positional argument with choices from fn
# @option    --opt12=`_fn`          A option with default value from fn
# @option    --opt13[`_fn`]         A option with choices from fn
# @option    --opt14![`_fn`]        A required option with choices from fn

@sigoden sigoden merged commit 53f741f into main Mar 13, 2023
@sigoden sigoden deleted the feat-param-fn branch March 13, 2023 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant