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: add support for require args #18

Merged
merged 1 commit into from
Feb 22, 2024
Merged

Conversation

blaggacao
Copy link
Collaborator

Context

Sometimes an action command really won't run without an argument.

At the same time argument are opaque to us, unfortunactely. (there's no protocol to advertise cli structure to an invoking process)

But still, we can state that an argument is required and then fail early.

TUI changes

  • This requires a tui version which contains this feature to work

Config

On a given target, make sure to add the following special meta flag:

{
  meta = {
    requiresArgs = ["run"]; # mention the name of your action for this target
  };
}

@blaggacao blaggacao merged commit 3200ca9 into main Feb 22, 2024
1 check passed
@blaggacao blaggacao deleted the feat/action-require-args branch February 22, 2024 21:26
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