Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/ytl
Create command use yaml file.
https://github.com/afeiship/ytl
cli cmd command ipt nodejs ntl script yaml ycc yml
Last synced: 9 days ago
JSON representation
Create command use yaml file.
- Host: GitHub
- URL: https://github.com/afeiship/ytl
- Owner: afeiship
- Created: 2016-06-17T07:34:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-21T12:28:16.000Z (over 1 year ago)
- Last Synced: 2024-10-26T22:53:20.667Z (about 2 months ago)
- Topics: cli, cmd, command, ipt, nodejs, ntl, script, yaml, ycc, yml
- Language: TypeScript
- Homepage:
- Size: 142 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ytl
> Yaml task list.## installation
```shell
# public
npm i -g @jswork/ytl# private
git clone https://github.com/afeiship/ytl.git
cd ytl
npm i && npm link
npm run build
```## usage
```yml
# .ytl.yml
name: project_name
cache: 2QBKI2nT
vars:
remote: /home/aric.zheng/aric-jswork/jsw-rails/db
local: ${{ env.HOME }}/aric-jswork/jsw-rails/db
tasks:
sync:
- scp west:${{ vars.remote }}/production.sqlite3 ${{ vars.local }}/production.sqlite3
prd2dev:
- cd ${{ vars.local }}
- cp production.sqlite3 development.sqlite3
dynamic1:
- cd {0}
- tar zcf {1}.tar.gz *.png
- ls -alh
```## configuration
```conf
; in home dir
~/.ytl.yml; in project dir
current_project_dir/.ytl.yml
```