Skip to content

Commit d8ad4fb

Browse files
committed
Warning for old URL and Copyright update
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent 7701eef commit d8ad4fb

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

cmd/root.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ https://github.com/self-actuated/actuated-cli
3636
root.PersistentFlags().BoolP("staff", "s", false, "Execute the command as an actuated staff member")
3737

3838
root.PersistentPreRunE = func(cmd *cobra.Command, args []string) error {
39-
if _, ok := os.LookupEnv("ACTUATED_URL"); !ok {
39+
if v, ok := os.LookupEnv("ACTUATED_URL"); !ok || v == "" {
4040
return fmt.Errorf(`ACTUATED_URL environment variable is not set, see the CLI tab in the dashboard for instructions`)
41+
} else if strings.Contains(v, "o6s.io") {
42+
return fmt.Errorf("the ACTUATED_URL loaded from your shell is out of date, visit https://dashboard.actuated.com and click \"CLI\" for the latest URL and edit export ACTUATED_URL=... in your bash or zsh profile")
4143
}
4244
return nil
4345
}

cmd/version.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ import (
1212
)
1313

1414
func PrintASCIIArt() {
15-
arkadeLogo := aec.BlueF.Apply(actuatedCLIStr)
16-
fmt.Print(arkadeLogo)
15+
actuatedCLILogo := aec.BlueF.Apply(actuatedCLIStr)
16+
fmt.Print(actuatedCLILogo)
1717
}
1818

1919
func MakeVersion() *cobra.Command {
2020
var command = &cobra.Command{
2121
Use: "version",
2222
Short: "Print the version",
23-
Example: ` arkade version`,
23+
Example: ` actuated-cli version`,
2424
Aliases: []string{"v"},
2525
SilenceUsage: false,
2626
}
@@ -45,6 +45,6 @@ const actuatedCLIStr = `
4545
4646
Command Line Interface (CLI)
4747
48-
Copyright OpenFaaS Ltd 2023. All rights reserved.
48+
Copyright OpenFaaS Ltd 2026. All rights reserved.
4949
5050
`

0 commit comments

Comments
 (0)