@@ -28,8 +28,8 @@ func newAttachedIntegrationAttachCmd() *cobra.Command {
2828 Use : "add" ,
2929 Aliases : []string {"attach" },
3030 Short : "Attach an existing registered integration to a workflow" ,
31- Example : ` chainloop integration attached add --workflow deadbeef --integration beefdoingwell --opt projectName=MyProject --opt projectVersion=1.0.0` ,
32- RunE : func (cmd * cobra.Command , args []string ) error {
31+ Example : ` chainloop integration attached add --workflow deadbeef --project my-project -- integration beefdoingwell --opt projectName=MyProject --opt projectVersion=1.0.0` ,
32+ RunE : func (_ * cobra.Command , _ []string ) error {
3333 // Find the integration to extract the kind of integration we care about
3434 integration , err := action .NewRegisteredIntegrationDescribe (actionOpts ).Run (integrationName )
3535 if err != nil {
@@ -67,7 +67,7 @@ func newAttachedIntegrationAttachCmd() *cobra.Command {
6767 cmd .Flags ().StringVar (& workflowName , "workflow" , "" , "name of the workflow to attach this integration" )
6868 cobra .CheckErr (cmd .MarkFlagRequired ("workflow" ))
6969
70- cmd .Flags ().StringVar (& workflowName , "project" , "" , "name of the project the workflow belongs to" )
70+ cmd .Flags ().StringVar (& projectName , "project" , "" , "name of the project the workflow belongs to" )
7171 cobra .CheckErr (cmd .MarkFlagRequired ("project" ))
7272
7373 // StringSlice seems to struggle with comma-separated values such as p12 jsonKeys provided as passwords
0 commit comments