-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b420b18
commit 17e8e28
Showing
2 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
# sly | ||
Sly - a CLI tool | ||
# Sly | ||
A CLI tool utilizing plain Bash functions. | ||
|
||
## Slyfile | ||
|
||
Create a `Slyfile` somewhere you need it: | ||
|
||
```bash | ||
sly --init | ||
``` | ||
|
||
Add functions to the `Slyfile`. They may contain any Bash code. | ||
|
||
### Example | ||
|
||
```bash | ||
ping_home() { | ||
ping -c ${1-5} 127.0.0.1 | ||
screenfetch | ||
} | ||
``` | ||
|
||
Then run it with `sly ping_home 10` to do 10 pings to localhost and run `screenfetch` afterwards. Or run without arguments (`sly ping_home`) to do the default 5 pings instead of 10. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters