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

Cryptic output of bin/iridium (Hydrogen/Thor issue?) #39

Open
ahx opened this issue Jan 6, 2013 · 3 comments
Open

Cryptic output of bin/iridium (Hydrogen/Thor issue?) #39

ahx opened this issue Jan 6, 2013 · 3 comments

Comments

@ahx
Copy link
Contributor

ahx commented Jan 6, 2013

I am new to iridium, so i tried to run the iridium command, but the output looks a bit cryptic:

iridium [master]$ b ./bin/iridium
Tasks:
iridium Iridium::CLI ARGS # Run jslint on some files
iridium Iridium::CLI ARGS # Executes tests
iridium Iridium::CLI ARGS # Compile assets for deployment
iridium Iridium::CLI ARGS # Start a preview server
iridium generate NAME ARGS # run the given generator
iridium help [TASK] # Describe available tasks or one specific task

The last two commands look fine, but the first four seem to miss the command name.

@ghedamat
Copy link

+1 for this :)

@george
Copy link

george commented Jun 28, 2013

The generate command comes directly from hydrogen: https://github.com/radiumsoftware/hydrogen/blob/master/lib/hydrogen/cli.rb#L18

And the help command comes from Thor: https://github.com/erikhuda/thor/blob/87dc98c6e2c183c9b1f867c6c8e1b62ede5242bc/lib/thor.rb#L469

which might explain why they produce the correct help text.

The other, problematic help texts appear to be from commands that go through Hydrogen::CLI.add_subcommands!. So it would appear as if this issue is with hydrogen and not iridium.

Does that sound like an accurate assessment? If so, I'll start looking at the hydrogen code.

@ahawkins
Copy link
Contributor

The other, problematic help texts appear to be from commands that go through Hydrogen::CLI.add_subcommands!. So it would appear as if this issue is with hydrogen and not iridium.

This sounds like a fair assessment. I don't know if this is still a problem on thor master. There have been changes (by me) to thor to make iridium work. I've never used the built in help command so I've never been exposed to this.

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

4 participants