Remove access review framework controls

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
This commit is contained in:
Cursor Agent
2026-06-30 09:31:47 +00:00
committed by Bryan Frimin
parent 9822b39ece
commit 79285d97df
12 changed files with 74 additions and 172 deletions

View File

@@ -47,10 +47,9 @@ type updateResponse struct {
func NewCmdUpdate(f *cmdutil.Factory) *cobra.Command {
var (
flagName string
flagDescription string
flagFrameworkControl []string
flagOutput *string
flagName string
flagDescription string
flagOutput *string
)
cmd := &cobra.Command{
@@ -92,10 +91,6 @@ func NewCmdUpdate(f *cmdutil.Factory) *cobra.Command {
input["description"] = flagDescription
}
if cmd.Flags().Changed("framework-control") {
input["frameworkControls"] = flagFrameworkControl
}
data, err := client.Do(
updateMutation,
map[string]any{"input": input},
@@ -125,12 +120,6 @@ func NewCmdUpdate(f *cmdutil.Factory) *cobra.Command {
cmd.Flags().StringVar(&flagName, "name", "", "Campaign name")
cmd.Flags().StringVar(&flagDescription, "description", "", "Campaign description")
cmd.Flags().StringSliceVar(
&flagFrameworkControl,
"framework-control",
nil,
"Framework control IDs (can be repeated)",
)
flagOutput = cmdutil.AddOutputFlag(cmd)
return cmd