Updates readme and man page

This commit is contained in:
sloum 2021-08-26 23:11:23 -07:00
parent 92f6017697
commit 3d8d1a7cc7
3 changed files with 19 additions and 7 deletions

View File

@ -8,8 +8,8 @@ An easy way to install, remove, and update slope packages.
slp +<package> # installs a package
slp -<package> # removes a package
slp ^<package> # updates a package
slp ?<package> # displays info about a package
slp @<term> # searches for a package
slp @<package> # displays info about a package
slp ?<term> # searches for a package
slp list # lists all packages in the index
slp gen # start a new project

View File

@ -47,8 +47,8 @@ func Parse(args []string) ([]Operation, error) {
'-': REMOVE,
'^': UPDATE,
':': GENERATE,
'?': SHOW,
'@': SEARCH,
'@': SHOW,
'?': SEARCH,
}
for _, arg := range args {

18
slp.1
View File

@ -20,16 +20,28 @@ Display usage help and exit. Provides a list of all command line options with a
Display a list of \fIall\fP packages in the registry
.TP
.B
\fBgen\fP
Generate a new project folder with module.json and main.slo files
.TP
.B
\fBdocs [module]\fP
View the given module's README file, if one exists. Only works for local modules
.TP
.B
\fB+<package>\fP
Installs \fI<package>\fP, if it is found
Installs \fI<package>\fP
.TP
.B
\fB-<package>\fP
Removes \fI<package>\fP, if it is found
Removes \fI<package>\fP
.TP
.B
\fB^<package>\fP
Updates \fI<package>\fP, if it is found
Updates \fI<package>\fP
.TP
.B
\fB@<package>\fP
Show information about \fI<package>\fP
.TP
.B
\fB?<term>\fP