Update readme, change snap to snaps in CLI syntax for updates
This commit is contained in:
parent
6da16766fa
commit
f6dd275e79
|
@ -69,10 +69,13 @@ Once installed, you can use AllPac with the following commands:
|
|||
allpac update {package_name}
|
||||
```
|
||||
or
|
||||
|
||||
```bash
|
||||
allpac update {packagename1} {packagename2} {packagename3}
|
||||
```
|
||||
or
|
||||
```bash
|
||||
allpac update {aur/flats/snaps/arch}
|
||||
```
|
||||
|
||||
- Uninstall a package:
|
||||
```bash
|
||||
|
|
|
@ -53,13 +53,13 @@ func main() {
|
|||
|
||||
func handleUpdate(args []string) {
|
||||
if len(args) == 0 {
|
||||
fmt.Println("You must specify an update option: 'everything', 'snap', 'aur', 'arch', 'flats', or a specific package name.")
|
||||
fmt.Println("You must specify an update option: 'everything', 'snaps', 'aur', 'arch', 'flats', or a specific package name.")
|
||||
return
|
||||
}
|
||||
|
||||
updateFuncs := map[string]func() error{
|
||||
"everything": packagemanager.UpdateAllPackages,
|
||||
"snap": func() error { return packagemanager.UpdateSnapPackages() },
|
||||
"snaps": func() error { return packagemanager.UpdateSnapPackages() },
|
||||
"aur": func() error { return packagemanager.UpdateAURPackages() },
|
||||
"arch": func() error { return packagemanager.UpdatePacmanPackages() },
|
||||
"flats": func() error { return packagemanager.UpdateFlatpakPackages() },
|
||||
|
|
Loading…
Reference in New Issue
Block a user