-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(shortcut): add support for removing shortcuts
This commit adds a new flag to the `ShortcutCommand` class, `--remove` or `-r`, which allows the user to remove a shortcut. If this flag is present, the `Shortcut` class will call the `_delete` method instead of the `_create` method. Additionally, the `Shortcut` class now has a `_delete` method that deletes the shortcut. This method is implemented for Linux-based systems and Windows, but not for macOS. Finally, the `Shortcut` class now imports the `path` package, which was previously missing.
- Loading branch information
Showing
2 changed files
with
83 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters