11//
2- // Copyright 2023 The Chainloop Authors.
2+ // Copyright 2024 The Chainloop Authors.
33//
44// Licensed under the Apache License, Version 2.0 (the "License");
55// you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@ import (
2222
2323func newAttachedIntegrationAttachCmd () * cobra.Command {
2424 var options []string
25- var integrationID , workflowID string
25+ var integrationName , workflowName string
2626
2727 cmd := & cobra.Command {
2828 Use : "add" ,
@@ -31,7 +31,7 @@ func newAttachedIntegrationAttachCmd() *cobra.Command {
3131 Example : ` chainloop integration attached add --workflow deadbeef --integration beefdoingwell --opt projectName=MyProject --opt projectVersion=1.0.0` ,
3232 RunE : func (cmd * cobra.Command , args []string ) error {
3333 // Find the integration to extract the kind of integration we care about
34- integration , err := action .NewRegisteredIntegrationDescribe (actionOpts ).Run (integrationID )
34+ integration , err := action .NewRegisteredIntegrationDescribe (actionOpts ).Run (integrationName )
3535 if err != nil {
3636 return err
3737 }
@@ -52,7 +52,7 @@ func newAttachedIntegrationAttachCmd() *cobra.Command {
5252 return err
5353 }
5454
55- res , err := action .NewAttachedIntegrationAdd (actionOpts ).Run (integrationID , workflowID , opts )
55+ res , err := action .NewAttachedIntegrationAdd (actionOpts ).Run (integrationName , workflowName , opts )
5656 if err != nil {
5757 return err
5858 }
@@ -61,10 +61,10 @@ func newAttachedIntegrationAttachCmd() *cobra.Command {
6161 },
6262 }
6363
64- cmd .Flags ().StringVar (& integrationID , "integration" , "" , "ID of the integration already registered in this organization" )
64+ cmd .Flags ().StringVar (& integrationName , "integration" , "" , "Name of the integration already registered in this organization" )
6565 cobra .CheckErr (cmd .MarkFlagRequired ("integration" ))
6666
67- cmd .Flags ().StringVar (& workflowID , "workflow" , "" , "ID of the workflow to attach this integration" )
67+ cmd .Flags ().StringVar (& workflowName , "workflow" , "" , "name of the workflow to attach this integration" )
6868 cobra .CheckErr (cmd .MarkFlagRequired ("workflow" ))
6969
7070 // StringSlice seems to struggle with comma-separated values such as p12 jsonKeys provided as passwords
0 commit comments