feat: enable/disable functionality
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
- [Basic usage](#basic-usage)
|
||||
- [Install a mod](#install-a-mod)
|
||||
- [Uninstall a mod](#uninstall-a-mod)
|
||||
- [Enable/disable mods](#enabledisable-mods)
|
||||
- [List installed mods](#list-installed-mods)
|
||||
- [Advanced usage](#advanced-usage)
|
||||
- [Shortcuts](#shortcuts)
|
||||
@@ -57,7 +58,7 @@ h2mm install -n "Example mod" mod.patch_0 mod.patch_0.stream # -n is mandatory w
|
||||
h2mm install -n "Example mod" mod* # using a wildcard to include all files
|
||||
```
|
||||
|
||||
Important: If the mod has more than 1 variant, you need to install the one you want by unarchiving it separately.
|
||||
> Currently, if the mod has more than 1 variant, you need to install the one you want by unarchiving it separately.
|
||||
|
||||
#### Uninstall a mod
|
||||
|
||||
@@ -66,6 +67,16 @@ h2mm uninstall "Example mod"
|
||||
h2mm uninstall -i 1 # uninstall mod with index 1
|
||||
```
|
||||
|
||||
|
||||
#### Enable/disable mods
|
||||
|
||||
```bash
|
||||
h2mm enable "Example mod"
|
||||
h2mm enable -i 1 # enable mod with index 1
|
||||
h2mm disable "Example mod"
|
||||
h2mm disable -i 1 # disable mod with index 1
|
||||
```
|
||||
|
||||
#### List installed mods
|
||||
|
||||
```bash
|
||||
@@ -76,10 +87,12 @@ h2mm list
|
||||
|
||||
### Shortcuts
|
||||
|
||||
You can use the short form of the commands to save some time. The shortcuts are:
|
||||
You can use the short form of commands to save some time. The shortcuts are:
|
||||
|
||||
- `i` for `install`
|
||||
- `u` for `uninstall`
|
||||
- `e` for `enable`
|
||||
- `d` for `disable`
|
||||
- `l` for `list`
|
||||
- `ex` for `export`
|
||||
- `im` for `import`
|
||||
@@ -113,8 +126,10 @@ Feel free to contribute to this project by creating a pull request or opening an
|
||||
## Planned features
|
||||
|
||||
- [x] Check for mod updates
|
||||
- [x] Change to `.tar.gz` for exporting and importing
|
||||
- [ ] ! Enable/disable mods
|
||||
- [ ] ! Provide fixes for breaking updates
|
||||
- [ ] !! Easier way to change mod presets
|
||||
- [ ] !!! Find a way to make use of `manifest.json` and simplify installing variants
|
||||
- [x] Enable/disable mods
|
||||
- [ ] Easier way to change mod presets
|
||||
- [ ] Find a way to make use of `manifest.json` and simplify installing variants
|
||||
- [x] [DEV] Change to `.tar.gz` for exporting and importing
|
||||
- [ ] [DEV] Provide fixes for breaking updates
|
||||
- [ ] [DEV] Optimize code - throw errors in 1 line
|
||||
- [ ] [DEV] Rewrite some code to be more readable
|
||||
|
||||
Reference in New Issue
Block a user