
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
A cli that aims to managing template code.
pharah-cli aims to managing template code by maintaining a JSON of all template repository.
You could specify a template with owner, repository and branch. Like this:
npm install -g pharah-cli
//In
$ pharah list
//out
╔═══════════════╤═════════════════════╤════════╗
║ Template Name │ Owner/Name │ Branch ║
╟───────────────┼─────────────────────┼────────╢
║ pharah │ ZhaZhengRefn/pharah │ master ║
╚═══════════════╧═════════════════════╧════════╝
$ pharah add
? input the name of this template: pharah
? input the ownerName/repositoryName, such as: tj/commander.js: ZhaZhengRefn/pharah
? input the branch name where this template belongs to: master
╔═══════════════╤═════════════════════╤════════╗
║ Template Name │ Owner/Name │ Branch ║
╟───────────────┼─────────────────────┼────────╢
║ pharah │ ZhaZhengRefn/pharah │ master ║
╚═══════════════╧═════════════════════╧════════╝
$ pharah init
? Which template would you like to use ? pharah
? Input the name of new project. pharah-demo
? Input the path that you want to init the project. /Users/zhazheng/www/my_project
✔ Init the project successfully!
$ pharah delete
? Which template would you want to delete ? pharah
? Deleting a template can not be reverted. Sure? Yes
✔ Writing templates successfully!
╔═══════════════╤════════════╤════════╗
║ Template Name │ Owner/Name │ Branch ║
╚═══════════════╧════════════╧════════╝
$ pharah delete --all
? Delete all templates ? Yes
✔ Writing templates successfully!
╔═══════════════╤════════════╤════════╗
║ Template Name │ Owner/Name │ Branch ║
╚═══════════════╧════════════╧════════╝
$ pharah update
? input the name of the template that you want to update: pharah
? input the ownerName/repositoryName, such as: tj/commander.js: ZhaZhengRefn/pharah
? input the branch name where this template belongs to: develop //here, change the branch name.
✔ Writing templates successfully!
╔═══════════════╤═════════════════════╤═════════╗
║ Template Name │ Owner/Name │ Branch ║
╟───────────────┼─────────────────────┼─────────╢
║ pharah │ ZhaZhengRefn/pharah │ develop ║
╚═══════════════╧═════════════════════╧═════════╝
$ pharah sync
? Url of the template.json: http://www.refn.com/template.json
? Merge or Replace your current template? (Use arrow keys)
❯ merge
replace
You could input pwd
to get the path.
$ pharah exact
? Input the path you want to exact the template.json to. /Users/zhazheng/www/my_project
✔ Writing templates successfully!
╔═══════════════╤═════════════════════╤═════════╗
║ Template Name │ Owner/Name │ Branch ║
╟───────────────┼─────────────────────┼─────────╢
║ pharah │ ZhaZhengRefn/pharah │ develop ║
╚═══════════════╧═════════════════════╧═════════╝
FAQs
A cli that aims to managing template code.
The npm package pharah-cli receives a total of 0 weekly downloads. As such, pharah-cli popularity was classified as not popular.
We found that pharah-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.