diff --git a/pkg/entity/data_contract/cmd.go b/pkg/entity/data_contract/cmd.go index ac2ddf2..82b27fb 100644 --- a/pkg/entity/data_contract/cmd.go +++ b/pkg/entity/data_contract/cmd.go @@ -54,7 +54,7 @@ func ListCmd() *cobra.Command { func GetCmd() *cobra.Command { return &cobra.Command{ Use: "data-contract (handle/name/version)", - Short: "Get Event Contract by reference", + Short: "Get Data-Contract by reference", Long: longDoc, DisableAutoGenTag: true, PreRun: func(cmd *cobra.Command, args []string) { diff --git a/pkg/entity/data_contract/data_contract.go b/pkg/entity/data_contract/data_contract.go index a3b2773..5c2754e 100644 --- a/pkg/entity/data_contract/data_contract.go +++ b/pkg/entity/data_contract/data_contract.go @@ -171,7 +171,9 @@ func RefsCompletion(cmd *cobra.Command, args []string, complete string) ([]strin return nil, cobra.ShellCompDirectiveNoFileComp } - req := &data_contracts.ListDataContractsRequest{} + req := &data_contracts.ListDataContractsRequest{ + ProjectId: project.GetProjectId(cmd), + } response, err := client.ListDataContracts(apiContext, req) if err != nil {