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

Add support for N amount of arguments for a command #4

Open
3 tasks
ebebbington opened this issue May 31, 2021 · 3 comments
Open
3 tasks

Add support for N amount of arguments for a command #4

ebebbington opened this issue May 31, 2021 · 3 comments
Assignees

Comments

@ebebbington
Copy link
Member

Summary

What:

Say my cli has a subcommand where i can do:

$ dmm update deps.ts
$ dmm update fs http
$ dmm update fs http drash
$dmm update deps.ts fs http drash

Where all arugments are optional

What Line should be able to do is allow the user to easily extract those arguments, eg public signature = "update [...modules]

Why:

Right now, i'm using a pure Deno solution to do this, but ideally, Line should be able to provide this for us, making it easier to extract the arguments

Acceptance Criteria

Below is a list of tasks that must be completed before this issue can be closed.

  • Write documentation
  • Write unit tests
  • Write integration tests

Example Pseudo Code (for implementation)

// Add example pseudo code for implementation
@crookse
Copy link
Member

crookse commented Dec 2, 2021

i'll try to get this in this month

@crookse
Copy link
Member

crookse commented Dec 16, 2021

moving to 2022 Q1

@crookse crookse changed the title Add support for N amount of arguments for a subcommand Add support for N amount of arguments for a command Dec 16, 2021
@crookse
Copy link
Member

crookse commented Dec 16, 2021

changing title to be inclusive of all commands (main commands and subcommands)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants