diff --git a/cli/commands/flags.go b/cli/commands/flags.go index 77b60aca43..25188c2cd0 100644 --- a/cli/commands/flags.go +++ b/cli/commands/flags.go @@ -540,12 +540,12 @@ func NewGlobalFlags(opts *options.TerragruntOptions) cli.Flags { Name: TerragruntExperimentModeFlagName, EnvVar: TerragruntExperimentModeEnvName, Destination: &opts.ExperimentMode, - Usage: "Enables experiment mode for Terragrunt. For more information, see https://terragrunt.gruntwork.io/docs/reference/experiment-mode .", + Usage: "Enables experiment mode for Terragrunt. For more information, see https://terragrunt.gruntwork.io/docs/reference/experiments/ .", }, &cli.SliceFlag[string]{ Name: TerragruntExperimentFlagName, EnvVar: TerragruntExperimentEnvName, - Usage: "Enables specific experiments. For a list of available experiments, see https://terragrunt.gruntwork.io/docs/reference/experiment-mode .", + Usage: "Enables specific experiments. For a list of available experiments, see https://terragrunt.gruntwork.io/docs/reference/experiments/ .", Action: func(ctx *cli.Context, val []string) error { experiments := experiment.NewExperiments() warning, err := experiments.ValidateExperimentNames(val) diff --git a/internal/experiment/experiment.go b/internal/experiment/experiment.go index bd90da17c6..792936c753 100644 --- a/internal/experiment/experiment.go +++ b/internal/experiment/experiment.go @@ -2,7 +2,7 @@ // By default experiment mode is disabled, but when enabled, experimental features can be enabled. // These features are not yet stable and may change in the future. // -// Note that any behavior outlined here should be documented in /docs/_docs/04_reference/experiment-mode.md +// Note that any behavior outlined here should be documented in /docs/_docs/04_reference/experiments.md // // That is how users will know what to expect when they enable experiment mode, and how to customize it. package experiment @@ -122,7 +122,7 @@ type CompletedExperimentsWarning struct { } func (e CompletedExperimentsWarning) String() string { - return "The following experiment(s) are already completed: " + strings.Join(e.ExperimentNames, ", ") + ". Please remove any completed experiments, as setting them no longer does anything. For a list of all ongoing experiments, and the outcomes of previous experiments, see https://terragrunt.gruntwork.io/docs/reference/experiment-mode" + return "The following experiment(s) are already completed: " + strings.Join(e.ExperimentNames, ", ") + ". Please remove any completed experiments, as setting them no longer does anything. For a list of all ongoing experiments, and the outcomes of previous experiments, see https://terragrunt.gruntwork.io/docs/reference/experiments/" } // InvalidExperimentsError is an error that is returned when an invalid experiments are requested. @@ -131,7 +131,7 @@ type InvalidExperimentsError struct { } func (e InvalidExperimentsError) Error() string { - return "The following experiment(s) are invalid: " + strings.Join(e.ExperimentNames, ", ") + ". For a list of all valid experiments, see https://terragrunt.gruntwork.io/docs/reference/experiment-mode" + return "The following experiment(s) are invalid: " + strings.Join(e.ExperimentNames, ", ") + ". For a list of all valid experiments, see https://terragrunt.gruntwork.io/docs/reference/experiments/" } // Evaluate returns true if either the experiment is enabled, or experiment mode is enabled. diff --git a/internal/experiment/experiment_test.go b/internal/experiment/experiment_test.go index 77cc85ae61..50f94ce7d3 100644 --- a/internal/experiment/experiment_test.go +++ b/internal/experiment/experiment_test.go @@ -50,7 +50,7 @@ func TestValidateExperiments(t *testing.T) { }, }, experimentNames: []string{experiment.Symlinks}, - expectedWarning: "The following experiment(s) are already completed: symlinks. Please remove any completed experiments, as setting them no longer does anything. For a list of all ongoing experiments, and the outcomes of previous experiments, see https://terragrunt.gruntwork.io/docs/reference/experiment-mode", + expectedWarning: "The following experiment(s) are already completed: symlinks. Please remove any completed experiments, as setting them no longer does anything. For a list of all ongoing experiments, and the outcomes of previous experiments, see https://terragrunt.gruntwork.io/docs/reference/experiments/", expectedError: nil, }, { @@ -62,7 +62,7 @@ func TestValidateExperiments(t *testing.T) { }, }, experimentNames: []string{"invalid", experiment.Symlinks}, - expectedWarning: "The following experiment(s) are already completed: symlinks. Please remove any completed experiments, as setting them no longer does anything. For a list of all ongoing experiments, and the outcomes of previous experiments, see https://terragrunt.gruntwork.io/docs/reference/experiment-mode", + expectedWarning: "The following experiment(s) are already completed: symlinks. Please remove any completed experiments, as setting them no longer does anything. For a list of all ongoing experiments, and the outcomes of previous experiments, see https://terragrunt.gruntwork.io/docs/reference/experiments/", expectedError: experiment.InvalidExperimentsError{ ExperimentNames: []string{"invalid"}, },