Commit 74b25b4
authored
Feature/alias command (#9)
* Refactor and expand alias management commands
Refactors alias management into a dedicated file (alias.go), introduces a new alias_check.go for listing and clearing shell aliases, and adds a new 'alias-self' command for system-level aliasing. Adds interactive subcommands for alias CRUD, enable/disable, popular alias addition, and shell registration. Replaces repeated PIN confirmation logic with a reusable ConfirmWithPIN helper. Updates related commands to use the new confirmation flow and improves code organization.
* Add popular alias management and refactor alias logic
Introduces a new GetPopularAliases function in a dedicated file to provide a comprehensive set of popular aliases for Git, Docker, System, Go, Node, and Yarn. Refactors the alias add-popular command to use this new function. Updates documentation and changelog to reflect enhanced alias management, new subcommands, and command renames. Bumps CLI version to 1.1.0.
* Refactor file handling and remove unused PIN generator
Replaces direct calls to f.Close() with error-ignored closures in alias.go for improved error handling consistency. Removes the unused generatePIN function and related imports from alias_check.go to clean up the codebase.1 parent 765751e commit 74b25b4
11 files changed
Lines changed: 1050 additions & 247 deletions
File tree
- cmd
- internal
- commands
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
8 | 30 | | |
9 | 31 | | |
10 | 32 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
0 commit comments