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

Enhancement: mage -l should print arguments too #482

Open
afjoseph opened this issue Oct 2, 2023 · 1 comment
Open

Enhancement: mage -l should print arguments too #482

afjoseph opened this issue Oct 2, 2023 · 1 comment

Comments

@afjoseph
Copy link

afjoseph commented Oct 2, 2023

Describe the feature
Currently, mage -l doesn't print the arguments: just a description of each, like this:

afjoseph :: dev/own/my-project » mage -l
Targets:
  buildProject
  buildIosDemoWithProject       Build the iOS Demo app with project
  buildIosDemoWithoutProject    Build the iOS Demo app without project
  runUnitTests

What I would love to see is:

afjoseph :: dev/own/my-project » mage -l
Targets:
  buildProject
    - verbose bool
  buildIosDemoWithProject       Build the iOS Demo app with project
    - binPath string
    - verbose bool
  buildIosDemoWithoutProject    Build the iOS Demo app without project
    - verbose bool
  runUnitTests
    - withRace bool

I don't think it's incredibly hard. If this hasn't been considered, I might take a stab at it if the community accepts it.

Fantastic project, btw ❤️

@mloskot
Copy link

mloskot commented Dec 5, 2023

Instead of changing the current semantic of -l i.e. list mage targets in this directory, why not recognise combination of -l -v as a way to obtain the output you suggest,

The -v is already there to show verbose output, so it could be used to show verbose listing of targets i.e. with lists of arguments, but not all details. Mind, you there already is mage -h <target> to get full details with arguments as well as aliases.

Fantastic project, btw ❤️

Yeah, it is! I'm personally worried though it feels like it's been a bit orphaned now.

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

No branches or pull requests

2 participants