Skip to content

Commit

Permalink
fix(strm-2427): data-contract tab completion works again
Browse files Browse the repository at this point in the history
  • Loading branch information
bvdeenen committed Aug 3, 2023
1 parent 5592298 commit 576c225
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/entity/data_contract/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 3 additions & 1 deletion pkg/entity/data_contract/data_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 576c225

Please sign in to comment.