From 2af4cfbf32d85d2fff9860580d8b0901355cf70f Mon Sep 17 00:00:00 2001 From: Virgil Date: Thu, 2 Apr 2026 06:02:26 +0000 Subject: [PATCH] feat(build): document workflow output aliases Co-Authored-By: Virgil --- cmd/build/cmd_workflow_test.go | 5 +++++ locales/en.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/build/cmd_workflow_test.go b/cmd/build/cmd_workflow_test.go index a75cd53..280a7bb 100644 --- a/cmd/build/cmd_workflow_test.go +++ b/cmd/build/cmd_workflow_test.go @@ -214,6 +214,11 @@ func TestBuildCmd_RunReleaseWorkflow_Good(t *testing.T) { assert.Equal(t, workflowOutputPathFlag.Usage, workflowOutputPathSnakeFlag.Usage) assert.Equal(t, workflowOutputPathFlag.Usage, workflowOutputFlag.Usage) assert.Equal(t, workflowOutputPathFlag.Usage, workflowOutputSnakeFlag.Usage) + + helpText, err := io.Local.Read("/workspace/locales/en.json") + require.NoError(t, err) + assert.Contains(t, helpText, "--workflow-output/") + assert.Contains(t, helpText, "--workflow_output/") }) t.Run("writes to a custom relative path", func(t *testing.T) { diff --git a/locales/en.json b/locales/en.json index 343ef09..a03ae17 100644 --- a/locales/en.json +++ b/locales/en.json @@ -113,7 +113,7 @@ }, "workflow": { "short": "Generate the release workflow", - "long": "Write the embedded GitHub Actions release workflow into .github/workflows/release.yml, or pass --path/--workflow-path/--workflow_path/--output-path/--output_path/--output/--workflowOutputPath/--workflow-output-path/--workflow_output_path for a custom location.", + "long": "Write the embedded GitHub Actions release workflow into .github/workflows/release.yml, or pass --path/--workflow-path/--workflow_path/--output-path/--output_path/--output/--workflowOutputPath/--workflow-output/--workflow_output/--workflow-output-path/--workflow_output_path for a custom location.", "flag": { "path": "Preferred workflow path input.", "workflow_path": "Predictable workflow path alias.",