https://github.com/ymc-github/sh-lib-stack-fun
some function for handle stack for ymc shell lib
https://github.com/ymc-github/sh-lib-stack-fun
fun sh-lib stack ymc
Last synced: 3 months ago
JSON representation
some function for handle stack for ymc shell lib
- Host: GitHub
- URL: https://github.com/ymc-github/sh-lib-stack-fun
- Owner: YMC-GitHub
- License: mit
- Created: 2020-06-03T14:06:57.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-10T08:37:10.000Z (almost 5 years ago)
- Last Synced: 2025-01-07T23:44:32.653Z (5 months ago)
- Topics: fun, sh-lib, stack, ymc
- Language: Shell
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# sh lib stack-fun
## desc
some function for handle stack for ymc shell lib
## deps
- [x] sh-lib-arr
## feat
- [x] stack
- [x] stack_push
- [x] stack_pop
- [x] stack_peek
- [x] stack_is_empty
- [x] stack_size
- [x] stack_clear
- [x] stack_print```sh
cat src/index.sh | grep "function " | sed "s/function */- [x] /g" | sed "s/(){//g"
```## how to use for poduction?
```sh
# get the code# run the index file
# ./index.sh# or import to your sh file
# source /path/to/the/index file# simple usage
```
## how to use for developer?
```sh
# get the code# run test
./src/test.sh
#2 get some fail test
#./src/test.sh | grep "it is false"
```## author
yemiancheng
## license
MIT