From e52b5aa20d121da36367c6f44a4992bd59fa2a0c Mon Sep 17 00:00:00 2001 From: Vladimir Iliakov Date: Mon, 25 Aug 2025 13:25:49 +0200 Subject: [PATCH 1/3] STAC-0: Updating .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 7922457b..54a29a4b 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,5 @@ release-notes.md release-notes.json CLAUDE.*.md + +.localdev/ From 291e2fb168502562a63432efff38a768c1f1e233 Mon Sep 17 00:00:00 2001 From: Vladimir Iliakov Date: Mon, 25 Aug 2025 16:31:02 +0200 Subject: [PATCH 2/3] STAC-22599: stackpack scaffold creates a directory with the stackpack name instead of using the current directory --- cmd/stackpack/stackpack_scaffold.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/stackpack/stackpack_scaffold.go b/cmd/stackpack/stackpack_scaffold.go index f1be0c51..ec0bcffe 100644 --- a/cmd/stackpack/stackpack_scaffold.go +++ b/cmd/stackpack/stackpack_scaffold.go @@ -69,7 +69,7 @@ sts stackpack scaffold --template-github-repo stackvista/my-templates --name my- cmd.Flags().StringVar(&args.TemplateGitHubPath, "template-github-path", "", fmt.Sprintf("Path within the repository containing template subdirectories (default: %s)", defaultTemplateGitHubPath)) // Common flags - cmd.Flags().StringVar(&args.DestinationDir, "destination-dir", "", "Target directory where scaffolded files will be created. If not specified, uses current working directory") + cmd.Flags().StringVar(&args.DestinationDir, "destination-dir", "", "Target directory where scaffolded files will be created. If not specified, creates a directory with the stackpack name in the current working directory") cmd.Flags().StringVar(&args.Name, "name", "", "Name of the stackpack (required). Must start with [a-z] and contain only lowercase letters, digits, and hyphens") cmd.Flags().StringVar(&args.DisplayName, "display-name", "", "Name that's displayed on both the StackPack listing page and on the title of the StackPack page. If not provided, the value of --name will be used") cmd.Flags().StringVar(&args.TemplateName, "template-name", defaultTemplateName, fmt.Sprintf("Name of the template subdirectory to use (default: %s)", defaultTemplateName)) @@ -91,10 +91,11 @@ func RunStackpackScaffoldCommand(args *ScaffoldArgs) func(cli *di.Deps, cmd *cob var err error if args.DestinationDir == "" { - args.DestinationDir, err = os.Getwd() + currentDir, err := os.Getwd() if err != nil { return common.NewRuntimeError(fmt.Errorf("failed to get current working directory: %w", err)) } + args.DestinationDir = filepath.Join(currentDir, args.Name) } // Validate stackpack name From 4aa22781bb1bf36c30f3b84f81bb819c437ceb92 Mon Sep 17 00:00:00 2001 From: Vladimir Iliakov Date: Mon, 25 Aug 2025 16:54:40 +0200 Subject: [PATCH 3/3] STAC-0: Remove Claude.md from .gitignore since it is not approved --- .gitignore | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitignore b/.gitignore index 54a29a4b..2fa60455 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,4 @@ result release-notes.md release-notes.json -CLAUDE.*.md - .localdev/