File tree 1 file changed +23
-22
lines changed
1 file changed +23
-22
lines changed Original file line number Diff line number Diff line change @@ -35,28 +35,29 @@ def main():
35
35
return
36
36
37
37
# Command dispatch
38
- if command == "auth" :
39
- auth_command ()
40
- elif command == "logout" :
41
- logout_command ()
42
- elif command == "info" :
43
- info_command ()
44
- elif command == "help" :
45
- help_command ()
46
- elif command == "push" :
47
- push_command (sys .argv [2 :])
48
- elif command == "pull" :
49
- pull_command ()
50
- elif command == "group:create" :
51
- group_create_command ()
52
- elif command == "group:delete" :
53
- group_delete_command ()
54
- elif command == "group:privacy" :
55
- group_privacy_command ()
56
- elif command == "group:list" :
57
- group_list_command ()
58
- else :
59
- console .print ("[bold red]❌ Unknown command. Use 'cas help' for a list of commands.[/]" )
38
+ match command :
39
+ case "auth" :
40
+ auth_command ()
41
+ case "logout" :
42
+ logout_command ()
43
+ case "info" :
44
+ info_command ()
45
+ case "help" :
46
+ help_command ()
47
+ case "push" :
48
+ push_command (sys .argv [2 :])
49
+ case "pull" :
50
+ pull_command ()
51
+ case "group:create" :
52
+ group_create_command ()
53
+ case "group:delete" :
54
+ group_delete_command ()
55
+ case "group:privacy" :
56
+ group_privacy_command ()
57
+ case "group:list" :
58
+ group_list_command ()
59
+ case _:
60
+ console .print ("[bold red]❌ Unknown command. Use 'cas help' for a list of commands.[/]" )
60
61
61
62
if __name__ == "__main__" :
62
63
main ()
You can’t perform that action at this time.
0 commit comments