Commit 2ea3ce0
Replace click.MultiCommand with click.Group (#2096)
click.MultiCommand is deprecated and will be removed in click 9.
This change migrates to click.Group which is the recommended replacement.
- Changed ElementaryCLI base class from click.MultiCommand to click.Group
- Replaced @click.command with @click.group decorator
- Removed _CMD_MAP dictionary and list_commands() method
- Added commands using cli.add_command() instead
- Updated get_command() to call super().get_command()
Fixes ELE-5220
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Itamar Hartstein <haritamar@gmail.com>1 parent 3b870a6 commit 2ea3ce0
1 file changed
Lines changed: 9 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 39 | + | |
50 | 40 | | |
51 | 41 | | |
52 | | - | |
| 42 | + | |
53 | 43 | | |
54 | 44 | | |
55 | 45 | | |
| |||
75 | 65 | | |
76 | 66 | | |
77 | 67 | | |
78 | | - | |
| 68 | + | |
79 | 69 | | |
80 | 70 | | |
81 | 71 | | |
| |||
87 | 77 | | |
88 | 78 | | |
89 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
90 | 86 | | |
91 | 87 | | |
0 commit comments