gemnasium / toolbelt

Gemnasium toolbelt is a CLI for the Gemnasium API (NOT MAINTAINED ANYMORE)
https://gemnasium.com
MIT License
106 stars 24 forks source link

GEMNASIUM_TOKEN not being recognized in .gemnasium.yml #30

Open monfresh opened 9 years ago

monfresh commented 9 years ago

Maybe I'm doing something wrong, but it seems like the command line tool is not finding GEMNASIUM_TOKEN in my .gemnasium.yml. When I run gemnasium autoupdate run, it says:

auth: You must be logged in. Please use `gemnasium auth login` first, or pass your api token with --token or GEMNASIUM_TOKEN

Do I need to pass in an option to let it know to get the values from .gemnasium.yml?

gravis commented 9 years ago

Hi, Could you try to put api_key in your .gemnasium.yml file? We kept the name for backward compatibility, and it might be confusing for new users.

Thanks

monfresh commented 9 years ago

That worked, thanks! If possible, it would also be nice to be able to specify the GEMNASIUM_TESTSUITE variable in .gemnasium.yml. That way, I don't have to keep exporting the variable each time. I suppose I could put it in my .zshrc, but it would be preferable to have all gemnasium-related configuration in the same place. What do you think?