added search
This commit is contained in:
1 parent
d99c96c41e
commit
e650e2b7bc
2 files changed
+8
-1
No files matched your search
@@ -4,7 +4,7 @@ a nixos operations frontent for lazy people
|
||||
### installation:
|
||||
1. prerequesites
|
||||
|
||||
the only prerequesite is `nom`. please ensure you have it installed before using `sysop`!
|
||||
the only prerequesites are `nom` and `nix-search-cli`. please ensure you have them installed before using `sysop`!
|
||||
|
||||
2. initial setup
|
||||
|
||||
@@ -28,3 +28,4 @@ now you can give it a shot by running `sysop -h`
|
||||
|-d | garbage collection |
|
||||
|-p | nix-shell installation |
|
||||
|-h | help |
|
||||
|-s | search |
|
||||
@@ -41,6 +41,11 @@ if [[ $1 == "-p" ]]; then
|
||||
nix-shell -p $1 |& nom
|
||||
fi
|
||||
|
||||
# search
|
||||
if [[ $1 == "-s" ]]; then
|
||||
nix-search $1
|
||||
fi
|
||||
|
||||
# help
|
||||
if [[ $1 == "-h" ]]; then
|
||||
echo "sysop: system operations"
|
||||
@@ -50,6 +55,7 @@ if [[ $1 == "-h" ]]; then
|
||||
echo "-d Garbage Collection"
|
||||
echo "-h Display this help"
|
||||
echo "-p nix-shell install (temporary)"
|
||||
echo "-s Search"
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user