@jianxing/jx
v0.0.13
Published
Personal CLI tool
Downloads
1
Readme
jx
Personal CLI tool
- [x] Cloen repo
- [x] Common text snippets
- [ ] ...
Install
#pnpm
pnpm i -g @jianxing/jx
# npm
npm i -g @jianxing/jx
# yarn
yarn add -g @jianxing/jx
Usage
Command
# jx config
jx config repoUrl=xxx # common text snippets repo url
jx config accessToken=xxx # auth account token, generate by Profile -> Settings -> Developer settings -> Personal access tokens -> Tokens(classic) or Fine-grained tokens
# jx repo
jx repo # show all common text list
jx repo <filePath> # get a file content
jx repo <filePath> -d # delete a file
jx repo <filePath> "some content" -s # put some content to file
jx repo <filePath> "some content" -sn # create a file with content
jx repo <filePath> "some content" -a # append content to a file
# jx start <repo> [owner] [ref],owner defult is self
jx start <repo> # clone <repo>
jx start <repo> [owner] # clone <repo> of [owner]
jx start <repo> [owner] [ref] # ref is branch or tag or commitHash
License
MIT License © 2023-PRESENT Jianxing Xu