-
Notifications
You must be signed in to change notification settings - Fork 4
STAC-22609: Adding stackpack package command #111
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
Conversation
Stackpack Package CLI Command - Complete Test ResultsPrerequisites
Test Environment Setup
Test Execution Results1. Basic Package CommandDefault FunctionalityTest:
Package Specific DirectoryTest:
Verify Zip ContentsTest:
2. Custom Archive File FlagCustom FilenameTest:
Custom PathTest:
3. Force Flag FunctionalityWithout Force FlagTest: First run: Second run:
With Force FlagTest:
4. Output FormatsJSON OutputTest: {
"source_dir": "/Users/viliakov/Workspace/src/github/stackstate-cli/my-awesome-stackpack",
"stackpack_name": "my-awesome-stackpack",
"stackpack_version": "0.0.1",
"success": true,
"zip_file": "/Users/viliakov/Workspace/src/github/stackstate-cli/my-awesome-stackpack-0.0.1.zip"
}
Text Output (Default)Test:
5. HOCON Configuration ParsingValid HOCON FileVerify stackpack.conf format: Test:
6. Validation and Error HandlingMissing Required FilesTest: Create test directory missing
Test: Create test directory missing
Invalid stackpack.conf FileTest: Create invalid
Test: Create
Invalid DirectoriesTest:
7. Help and UsageCommand HelpTest:
Parent Command HelpTest:
Without Experimental FlagTest:
Test Results SummaryAll tests passed successfully. The
|
deontaljaard
left a comment
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.
LGTM
Summary
stackpack packagesubcommand that creates zip files from stackpack directories. This command packages all required stackpack files and directories into a properly named zip archive for distribution and deployment.STS_EXPERIMENTAL_STACKPACK_SCAFFOLDenvironment variable renamed toSTS_EXPERIMENTAL_STACKPACKFeatures
Usage Examples
Package stackpack in current directory
sts stackpack package
Package specific stackpack directory
sts stackpack package -d ./my-stackpack
Package with custom archive filename
sts stackpack package -f my-custom-archive.zip
Force overwrite existing zip file
sts stackpack package --force