@@ -612,19 +612,19 @@ var logoutCmd = &cobra.Command{
612
612
}
613
613
614
614
var tosCmd = & cobra.Command {
615
- Use : "terms " ,
616
- Aliases : []string {"tos " , "eula" },
615
+ Use : "tos " ,
616
+ Aliases : []string {"terms " , "eula" , "tos" , "tou " },
617
617
Annotations : authNeededAnnotation ,
618
618
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 " ,
620
620
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" )
623
623
if agree {
624
624
if _ , err := client .SignEULA (cmd .Context (), & connect.Request [emptypb.Empty ]{}); err != nil {
625
625
return err
626
626
}
627
- cli .Info (" * You have agreed to the Defang terms and conditions " )
627
+ cli .Info (" * You have agreed to the Defang terms of service " )
628
628
}
629
629
return nil
630
630
},
@@ -642,7 +642,7 @@ func main() {
642
642
//rootCmd.PersistentFlags().StringVarP(&userLicense, "license", "l", "", "name of license for the project")
643
643
644
644
// 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 " )
646
646
rootCmd .AddCommand (tosCmd )
647
647
648
648
// Token command
@@ -771,7 +771,7 @@ func main() {
771
771
printDefangHint ("Please use the following command to log in:" , "login" )
772
772
}
773
773
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" )
775
775
}
776
776
777
777
os .Exit (int (code ))
0 commit comments