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
|
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