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

add pack extension --help #1601

Closed

Conversation

itsdarshankumar
Copy link
Contributor

Summary

Added command to show output for "pack extension --help"

Output

image

image

Before

No such command exists before

Related

Resolves #1470

@itsdarshankumar itsdarshankumar requested review from a team as code owners January 19, 2023 04:29
@github-actions github-actions bot added this to the 0.29.0 milestone Jan 19, 2023
@github-actions github-actions bot added the type/enhancement Issue that requests a new feature or improvement. label Jan 19, 2023
@itsdarshankumar itsdarshankumar force-pushed the pack_extension branch 4 times, most recently from 4019128 to 5985da8 Compare January 19, 2023 11:49
@codecov
Copy link

codecov bot commented Jan 19, 2023

Codecov Report

Merging #1601 (5985da8) into main (6c23a08) will decrease coverage by 1.71%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1601      +/-   ##
==========================================
- Coverage   80.58%   78.87%   -1.71%     
==========================================
  Files         156      163       +7     
  Lines       10480    10578      +98     
==========================================
- Hits         8444     8342     -102     
- Misses       1534     1734     +200     
  Partials      502      502              
Flag Coverage Δ
os_linux 78.62% <0.00%> (-0.71%) ⬇️
os_macos 76.68% <0.00%> (-0.71%) ⬇️
os_windows 78.78% <0.00%> (-1.71%) ⬇️
unit 78.87% <0.00%> (-1.71%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

itsdarshankumar and others added 2 commits January 20, 2023 10:52
Signed-off-by: Darshan Kumar <[email protected]>
Signed-off-by: Joe Kimmel <[email protected]>
Signed-off-by: Darshan Kumar <[email protected]>
Copy link
Member

@jjbustamante jjbustamante left a comment

Choose a reason for hiding this comment

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

Great job @itsdarshankumar.

A part from my doubt with the location of NewExtensionCommand and the fact that I think the PR needs to rebase against the main branch. Every thing looks good to me!

@@ -76,6 +76,7 @@ func NewPackCommand(logger ConfigurableLogger) (*cobra.Command, error) {
rootCmd.AddCommand(commands.Build(logger, cfg, packClient))
rootCmd.AddCommand(commands.NewBuilderCommand(logger, cfg, packClient))
rootCmd.AddCommand(commands.NewBuildpackCommand(logger, cfg, packClient, buildpackage.NewConfigReader()))
rootCmd.AddCommand(commands.NewExtensionCommand(logger, cfg, packClient, buildpackage.NewConfigReader()))
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if this line should be move inside the statement if cfg.Experimental on line 100. I believe the extensions is actually an experimental feature.

@itsdarshankumar itsdarshankumar deleted the pack_extension branch January 20, 2023 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Issue that requests a new feature or improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pack should support pack extension * commands
3 participants