Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/stackpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func StackPackCommand(cli *di.Deps) *cobra.Command {
if os.Getenv(experimentalStackpackEnvVar) != "" {
cmd.AddCommand(stackpack.StackpackScaffoldCommand(cli))
cmd.AddCommand(stackpack.StackpackPackageCommand(cli))
cmd.AddCommand(stackpack.StackpackTestCommand(cli))
}

return cmd
Expand Down
2 changes: 1 addition & 1 deletion cmd/stackpack/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (w *OperationWaiter) WaitForCompletion(options WaitOptions) error {

// Return immediately if any configuration has failed
if len(errorMessages) > 0 {
return fmt.Errorf("stackpack '%s' installation failed:\n%s", options.StackPackName, strings.Join(errorMessages, "\n"))
return fmt.Errorf("stackpack '%s' failed:\n%s", options.StackPackName, strings.Join(errorMessages, "\n"))
}

// Success: all configurations are installed and none are provisioning
Expand Down
2 changes: 1 addition & 1 deletion cmd/stackpack/stackpack_package.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func RunStackpackPackageCommand(args *PackageArgs) func(cli *di.Deps, cmd *cobra
"source_dir": args.StackpackDir,
})
} else {
cli.Printer.Successf("Stackpack packaged successfully!")
cli.Printer.Successf("Stackpack packaged successfully!")
cli.Printer.PrintLn("")
cli.Printer.PrintLn(fmt.Sprintf("Stackpack: %s (v%s)", stackpackInfo.Name, stackpackInfo.Version))
cli.Printer.PrintLn(fmt.Sprintf("Zip file: %s", args.ArchiveFile))
Expand Down
6 changes: 3 additions & 3 deletions cmd/stackpack/stackpack_package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestStackpackPackageCommand_DefaultBehavior(t *testing.T) {
// Verify text output
require.NotEmpty(t, *cli.MockPrinter.SuccessCalls)
successCall := (*cli.MockPrinter.SuccessCalls)[0]
assert.Contains(t, successCall, "Stackpack packaged successfully!")
assert.Contains(t, successCall, "Stackpack packaged successfully!")

require.NotEmpty(t, *cli.MockPrinter.PrintLnCalls)
printLnCalls := *cli.MockPrinter.PrintLnCalls
Expand Down Expand Up @@ -143,7 +143,7 @@ func TestStackpackPackageCommand_ForceFlag(t *testing.T) {
// Verify success message
require.NotEmpty(t, *cli2.MockPrinter.SuccessCalls)
successCall := (*cli2.MockPrinter.SuccessCalls)[0]
assert.Contains(t, successCall, "Stackpack packaged successfully!")
assert.Contains(t, successCall, "Stackpack packaged successfully!")
}

func TestStackpackPackageCommand_JSONOutput(t *testing.T) {
Expand Down Expand Up @@ -568,7 +568,7 @@ func TestStackpackPackageCommand_TextOutput(t *testing.T) {
// Verify success message
require.NotEmpty(t, *cli.MockPrinter.SuccessCalls)
successCall := (*cli.MockPrinter.SuccessCalls)[0]
assert.Contains(t, successCall, "Stackpack packaged successfully!")
assert.Contains(t, successCall, "Stackpack packaged successfully!")

// Verify stackpack info is printed
printLnCalls := *cli.MockPrinter.PrintLnCalls
Expand Down
2 changes: 1 addition & 1 deletion cmd/stackpack/stackpack_scaffold.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func RunStackpackScaffoldCommand(args *ScaffoldArgs) func(cli *di.Deps, cmd *cob
})
} else {
// Display success message and next steps
cli.Printer.Successf("Scaffold complete!")
cli.Printer.Successf("Scaffold complete!")
cli.Printer.PrintLn("")
displayNextSteps(cli, args)
}
Expand Down
Loading
Loading