Skip to content

Commit ae6d8c2

Browse files
committed
rename back to terms of service
1 parent a1968e3 commit ae6d8c2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/cmd/cli/main.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -612,19 +612,19 @@ var logoutCmd = &cobra.Command{
612612
}
613613

614614
var tosCmd = &cobra.Command{
615-
Use: "terms",
616-
Aliases: []string{"tos", "eula"},
615+
Use: "tos",
616+
Aliases: []string{"terms", "eula", "tos", "tou"},
617617
Annotations: authNeededAnnotation,
618618
Args: cobra.NoArgs,
619-
Short: "Read and/or agree the Defang terms and conditions",
619+
Short: "Read and/or agree the Defang terms of service",
620620
RunE: func(cmd *cobra.Command, args []string) error {
621-
agree, _ := cmd.Flags().GetBool("agree")
622-
cli.Println("Read our latest terms and conditions at https://defang.io/terms-conditions.html")
621+
agree, _ := cmd.Flags().GetBool("agree-tos")
622+
cli.Println("Read our latest terms of service at https://defang.io/terms-conditions.html")
623623
if agree {
624624
if _, err := client.SignEULA(cmd.Context(), &connect.Request[emptypb.Empty]{}); err != nil {
625625
return err
626626
}
627-
cli.Info(" * You have agreed to the Defang terms and conditions")
627+
cli.Info(" * You have agreed to the Defang terms of service")
628628
}
629629
return nil
630630
},
@@ -642,7 +642,7 @@ func main() {
642642
//rootCmd.PersistentFlags().StringVarP(&userLicense, "license", "l", "", "name of license for the project")
643643

644644
// Eula command
645-
tosCmd.Flags().Bool("agree", false, "Agree to the Defang terms and conditions")
645+
tosCmd.Flags().Bool("agree-tos", false, "Agree to the Defang terms of service")
646646
rootCmd.AddCommand(tosCmd)
647647

648648
// Token command
@@ -771,7 +771,7 @@ func main() {
771771
printDefangHint("Please use the following command to log in:", "login")
772772
}
773773
if code == connect.CodeFailedPrecondition && (strings.Contains(err.Error(), "EULA") || strings.Contains(err.Error(), "terms")) {
774-
printDefangHint("Please use the following command to agree to the Defang terms and conditions:", "terms --agree")
774+
printDefangHint("Please use the following command to agree to the Defang terms of service:", "terms --agree")
775775
}
776776

777777
os.Exit(int(code))

0 commit comments

Comments
 (0)