Skip to content
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

Add policy commands #276

Merged
merged 1 commit into from
Dec 11, 2024
Merged

Add policy commands #276

merged 1 commit into from
Dec 11, 2024

Conversation

tomasmik
Copy link
Contributor

@tomasmik tomasmik commented Dec 6, 2024

This adds:

➜  spacectl git:(add-policy-operations) ✗ ./spc policy
NAME:
   spacectl policy - Manage Spacelift policies

USAGE:
   spacectl policy command [command options]

COMMANDS:
   list      List the policies you have access to
   show      Shows detailed information about a specific policy
   samples   List all policy samples
   sample    Inspect one policy sample
   simulate  Simulate a policy using a sample

All the commands are pretty basic and work as any other one. The simulate one is basic as well and can only simulate policies which already exist however the data provided can be custom, from a file or terminal input.

@tomasmik tomasmik self-assigned this Dec 6, 2024
internal/cmd/policy/simulate.go Dismissed Show dismissed Hide dismissed
@tomasmik tomasmik force-pushed the add-policy-operations branch 3 times, most recently from c87c55b to 569deb4 Compare December 6, 2024 13:59
@tomasmik tomasmik merged commit 8ee1f65 into main Dec 11, 2024
9 checks passed
@tomasmik tomasmik deleted the add-policy-operations branch December 11, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants