-
Notifications
You must be signed in to change notification settings - Fork 294
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
Add builder subcommand #965
Conversation
Blocked on #964 |
f8a558f
to
d05d553
Compare
Codecov Report
@@ Coverage Diff @@
## main #965 +/- ##
==========================================
+ Coverage 77.92% 78.04% +0.13%
==========================================
Files 107 110 +3
Lines 5116 5172 +56
==========================================
+ Hits 3986 4036 +50
- Misses 730 734 +4
- Partials 400 402 +2
Flags with carried forward coverage won't be shown. Click here to find out more. |
34fd64e
to
258d14d
Compare
…ng to subcommands Signed-off-by: David Freilich <dfreilich@vmware.com>
Signed-off-by: David Freilich <dfreilich@vmware.com>
Signed-off-by: David Freilich <dfreilich@vmware.com>
297f274
to
987c556
Compare
Signed-off-by: David Freilich <dfreilich@vmware.com>
987c556
to
39d6fda
Compare
|
||
output, err := i.baseCmd(cmdParts...).CombinedOutput() | ||
i.assert.Nil(err) | ||
|
||
return strings.Contains(string(output), search) | ||
return strings.Contains(string(output), search) && !strings.Contains(string(output), "Unknown help topic") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since many of the command descriptions include "builder", it was falsely returning true, even though the initial line said "Unknown help topic". This ensures that we don't get false positives.
Signed-off-by: David Freilich <dfreilich@vmware.com>
|
||
builderConfig, warns, err := builder.ReadConfig(flags.BuilderTomlPath) | ||
if err != nil { | ||
return errors.Wrap(err, "invalid builder toml") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
return errors.Wrap(err, "invalid builder toml") | |
return errors.Wrap(err, "invalid builder TOML") |
✅ Accepted
|
Summary
pack create-builder
in favor ofpack builder create
pack suggest-builders
in favor ofpack builder suggest
Output
Before
After
Documentation
Related
Resolves #917
Relates to #597