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

Improve Supermarket CLI #508

Merged
merged 2 commits into from
Mar 1, 2016
Merged

Improve Supermarket CLI #508

merged 2 commits into from
Mar 1, 2016

Conversation

alexpop
Copy link
Contributor

@alexpop alexpop commented Mar 1, 2016

Make PROFILE required and update usage info

option :id, type: :string,
desc: 'Attach a profile ID to all test results'
target_options
option :format, type: :string
def exec(*tests)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need the * to get all parameters in one array

@chris-rock chris-rock changed the title Make PROFILE required and update usage info Improve Supermarket CLI Mar 1, 2016
@chris-rock
Copy link
Contributor

This PR improves the following:

  • shows an error if the profile does not exists for inspec supermarket info profilename
  • requires the profile parameter for info and exec

@chris-rock
Copy link
Contributor

Thanks @alexpop this was a great catch!

chris-rock added a commit that referenced this pull request Mar 1, 2016
@chris-rock chris-rock merged commit 744d98b into master Mar 1, 2016
@chris-rock chris-rock deleted the ap/update_usage branch March 1, 2016 13:43
@chris-rock chris-rock added the Type: Enhancement Improves an existing feature label Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Improves an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants