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

Update opm commands to specifcy if they don't take args #786

Merged

Conversation

tylerslaton
Copy link
Contributor

@tylerslaton tylerslaton commented Sep 22, 2021

Description of the change:
Updating the opm binary to specify when a command takes arguments or not. This will prevent typos from successfully running should a user accidentally type args into a command that does not accept them.

Motivation for the change:
Issue 703

Reviewer Checklist

  • Implementation matches the proposed design, or proposal is updated to match implementation
  • Sufficient unit test coverage
  • Sufficient end-to-end test coverage
  • Docs updated or added to /docs
  • Commit messages sensible and descriptive

Closes 703

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 22, 2021
@tylerslaton tylerslaton linked an issue Sep 22, 2021 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Sep 22, 2021

Codecov Report

Merging #786 (d1388ba) into master (9c330a2) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #786      +/-   ##
==========================================
+ Coverage   50.65%   50.67%   +0.01%     
==========================================
  Files         102      102              
  Lines        8879     8879              
==========================================
+ Hits         4498     4499       +1     
+ Misses       3530     3529       -1     
  Partials      851      851              
Impacted Files Coverage Δ
pkg/registry/query.go 60.93% <0.00%> (+0.52%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9c330a2...d1388ba. Read the comment docs.

Signed-off-by: Tyler Slaton <tyslaton@redhat.com>
@tylerslaton tylerslaton changed the title WIP Update opm commands to specifcy if they don't take args Update opm commands to specifcy if they don't take args Sep 23, 2021
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 23, 2021
@timflannagan
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 23, 2021
Copy link
Member

@njhale njhale left a comment

Choose a reason for hiding this comment

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

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 23, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: njhale, tylerslaton

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 23, 2021
@openshift-merge-robot openshift-merge-robot merged commit d538a79 into operator-framework:master Sep 23, 2021
akihikokuroda pushed a commit to akihikokuroda/operator-registry that referenced this pull request Sep 30, 2021
…-framework#786)

Signed-off-by: Tyler Slaton <tyslaton@redhat.com>
Signed-off-by: akihikokuroda <akihikokuroda2020@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OPM doesn't error/warn when given bad cli arguments
4 participants