Rewrite in Go

This commit is contained in:
2020-02-17 21:02:14 -08:00
commit 5d18e5defd
11 changed files with 1069 additions and 0 deletions

51
plugins/README.md Normal file
View File

@@ -0,0 +1,51 @@
# Pak
#### Wrapper written in Go designed for package managers to unify software management commands between distros
---
## Installation
###### APT Installation
- Install package "go" (You may remove after installation)
- Clone or download this repository
- Inside the repository, run:
```bash
make
sudo make aptinstall
```
###### Brew Installation
- Install package "go" (You may remove after installation)
- Clone or download this repository
- Inside the repository, run:
```bash
make
sudo make snapinstall
```
###### Snap Installation
- Install package "go" (You may remove after installation)
- Clone or download this repository
- Inside the repository, run:
```bash
make
sudo make snapinstall
```
###### Pacman Installation
- Install AUR package "pak" and choose pak-config-pacman when prompted
###### Yay Installation
- Install AUR package "pak" and choose pak-config-yay when prompted
###### Aptitude Installation
- Install package "go" (You may remove after installation)
- Clone or download this repository
- Inside the repository, run:
```bash
make
sudo make aptitude
```

13
plugins/aptitude/pak.cfg Normal file
View File

@@ -0,0 +1,13 @@
# Write the name of the package manager in all lowercase below
aptitude
# Write a comma separated list of commands from the manager below
install,remove,download,update,upgrade,full-upgrade,safe-upgrade,clean,hold,unhold,markauto,unmarkauto,why,whynot,reinstall,search,show,changelog
# Write "yes" or "no" depending on whether you want to use sudo
yes
# Write command to use for root
sudo
# Write a comma separated list of shortcuts below
rm,inst
# Write a comma separated list of shortcut mappings from the manager below
remove,install

13
plugins/brew/pak.cfg Normal file
View File

@@ -0,0 +1,13 @@
# Write the name of the package manager in all lowercase below
brew
# Write a comma separated list of commands from the manager below
install,reinstall,remove,upgrade,update,search,cask,list,doctor,edit
# Write "yes" or "no" depending on whether you want to use sudo
no
# Write command to use for root
sudo
# Write a comma separated list of shortcuts below
rm,src,dl,ci,cr,cre
# Write a comma separated list of shortcut mappings from the manager below
remove,search,download,cask install,cask remove,cask reinstall

12
plugins/pacman/pak.cfg Normal file
View File

@@ -0,0 +1,12 @@
# Write the name of the package manager in all lowercase below
pacwrap
# Write a comma separated list of commands from the manager below
install,remove,upgrade,update,clean,search,filesearch
# Write "yes" or "no" depending on whether you want to use sudo
yes
# Write command to use for root
sudo
# Write a comma separated list of shortcuts below
rm
# Write a comma separated list of shortcut mappings from the manager below
remove

13
plugins/snap/pak.cfg Normal file
View File

@@ -0,0 +1,13 @@
# Write the name of the package manager in all lowercase below
snap
# Write a comma separated list of commands from the manager below
install,remove,refresh,revert,run,download
# Write "yes" or "no" depending on whether you want to use sudo
yes
# Write command to use for root
sudo
# Write a comma separated list of shortcuts below
rm,inst
# Write a comma separated list of shortcut mappings from the manager below
remove,install

13
plugins/yay/pak.cfg Normal file
View File

@@ -0,0 +1,13 @@
# Write the name of the package manager in all lowercase below
yaywrap
# Write a comma separated list of commands from the manager below
install,remove,upgrade,update,clean,search,filesearch,interactive
# Write "yes" or "no" depending on whether you want to use sudo
no
# Write command to use for root
sudo
# Write a comma separated list of shortcuts below
rm
# Write a comma separated list of shortcut mappings from the manager below
remove