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

Help and version commands #1

Open
almereyda opened this issue Jun 30, 2023 · 1 comment
Open

Help and version commands #1

almereyda opened this issue Jun 30, 2023 · 1 comment

Comments

@almereyda
Copy link

When using the Lume CLI, I would like to be able to check which commands are available, and from which version I'm running.

Common conventions for CLI tools are to make these functions available with --help/-h and --version/-v flags. In other conventions, these functionalities are implemented by triggering commands, such as help or version.

It could be nice, if the Lume CLI would support basic implementations for both.

Filing this here, because this is the CLI wrapper for the original command.

References:

@oscarotero
Copy link
Member

Ok, it makes sense.

Lume CLI is just a wrapper to deno task lume. It means that if you run lume --version it runs deno task lume --version and returns the version of Lume used in your project (not the version of Lume CLI). And the same happens to lume -h.

But it's true that the CLI fails if lume task doesn't exist in the current directory. Maybe in this case the error should be catched and show some helpful information.

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

No branches or pull requests

2 participants