From cfb182b3415b30eb8c35af35f1ac9829549b236e Mon Sep 17 00:00:00 2001 From: Emmanuel Jacquier Date: Thu, 7 May 2026 11:09:31 -0400 Subject: [PATCH 1/3] update cre registry list to indicate how to use it --- cmd/registry/list/list.go | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/cmd/registry/list/list.go b/cmd/registry/list/list.go index 1ea5247d..21f10794 100644 --- a/cmd/registry/list/list.go +++ b/cmd/registry/list/list.go @@ -11,9 +11,17 @@ import ( func New(runtimeContext *runtime.Context) *cobra.Command { return &cobra.Command{ - Use: "list", - Short: "Lists available workflow registries for the current environment", - Long: `Displays the registries configured for your organization, including type and address.`, + Use: "list", + Short: "Lists available workflow registries for the current environment", + Long: `Displays the registries configured for your organization, including type and address. + +The ID shown for each registry is the value you set in workflow.yaml +under the ` + "`deployment-registry`" + ` key to target that registry, e.g.: + + : + user-workflow: + workflow-name: "my-workflow" + deployment-registry: "private"`, Example: `cre registry list`, Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { @@ -41,6 +49,14 @@ func New(runtimeContext *runtime.Context) *cobra.Command { ui.Line() } + ui.Bold("Targeting a registry") + ui.Dim("Set `deployment-registry` in your workflow.yaml to one of the IDs above:") + ui.Line() + ui.Code(" :") + ui.Code(" user-workflow:") + ui.Code(" deployment-registry: \"private\"") + ui.Line() + return nil }, } From 80456b2ff5d44e1a2c938a6c2570a73246ff1b18 Mon Sep 17 00:00:00 2001 From: Emmanuel Jacquier Date: Thu, 7 May 2026 11:11:41 -0400 Subject: [PATCH 2/3] gendoc --- docs/cre_registry_list.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/cre_registry_list.md b/docs/cre_registry_list.md index 350ccc24..7872dca8 100644 --- a/docs/cre_registry_list.md +++ b/docs/cre_registry_list.md @@ -6,6 +6,14 @@ Lists available workflow registries for the current environment Displays the registries configured for your organization, including type and address. +The ID shown for each registry is the value you set in workflow.yaml +under the `deployment-registry` key to target that registry, e.g.: + + : + user-workflow: + workflow-name: "my-workflow" + deployment-registry: "private" + ``` cre registry list [optional flags] ``` From 39ce107e279eadf5a11a3cf15e02e589e8aa7b0a Mon Sep 17 00:00:00 2001 From: Emmanuel Jacquier Date: Thu, 7 May 2026 11:24:19 -0400 Subject: [PATCH 3/3] fix registry id --- cmd/registry/list/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/registry/list/list.go b/cmd/registry/list/list.go index 21f10794..c5d39865 100644 --- a/cmd/registry/list/list.go +++ b/cmd/registry/list/list.go @@ -54,7 +54,7 @@ under the ` + "`deployment-registry`" + ` key to target that registry, e.g.: ui.Line() ui.Code(" :") ui.Code(" user-workflow:") - ui.Code(" deployment-registry: \"private\"") + ui.Code(fmt.Sprintf(" deployment-registry: %q", registries[0].ID)) ui.Line() return nil