kusion
kusion copied to clipboard
feat: support create and delete cmd of kusion project and stack
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR adds support for creating and deleting projects and stacks with cmd of kusion project create, kusion stack create, kusion project delete and kusion stack delete.
Which issue(s) this PR fixes:
Fixes #782
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., design docs, usage docs, etc.:
Pull Request Test Coverage Report for Build 8778103431
Details
- 323 of 365 (88.49%) changed or added relevant lines in 9 files are covered.
- 7 unchanged lines in 2 files lost coverage.
- Overall coverage increased (+0.8%) to 55.146%
| Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |
|---|---|---|---|
| pkg/cmd/project/cmd.go | 20 | 22 | 90.91% |
| pkg/cmd/stack/cmd.go | 20 | 22 | 90.91% |
| pkg/cmd/cmd.go | 0 | 3 | 0.0% |
| pkg/cmd/project/create/options.go | 38 | 41 | 92.68% |
| pkg/cmd/project/util/util.go | 33 | 37 | 89.19% |
| pkg/cmd/stack/create/options.go | 58 | 68 | 85.29% |
| pkg/cmd/stack/util/util.go | 70 | 88 | 79.55% |
| <!-- | Total: | 323 | 365 |
| Files with Coverage Reduction | New Missed Lines | % |
|---|---|---|
| pkg/engine/operation/parser/parser.go | 3 | 79.27% |
| pkg/engine/operation/parser/spec_parser.go | 4 | 56.1% |
| <!-- | Total: | 7 |
| Totals | |
|---|---|
| Change from base Build 8771191263: | 0.8% |
| Covered Lines: | 8744 |
| Relevant Lines: | 15856 |