Skip to content

Commit

Permalink
rename:gicp
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangnanscu committed Feb 27, 2024
1 parent d3ff0f9 commit 937aca2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# gitcp — straightforward project scaffolding
[![install size](https://badgen.net/packagephobia/install/gitcp)](https://packagephobia.now.sh/result?p=gitcp)
[![npm package version](https://badgen.net/npm/v/gitcp)](https://npm.im/gitcp)
# gicp — straightforward project scaffolding
[![install size](https://badgen.net/packagephobia/install/gicp)](https://packagephobia.now.sh/result?p=gicp)
[![npm package version](https://badgen.net/npm/v/gicp)](https://npm.im/gicp)

## Enhancement from the origin degit

- Use `degit some-repo` as a shortcut for `degit some-user/some-repo`

- Alias `gitcp` for `degit`
- Alias `gicp` for `degit`

If you're already logged into [GitHub CLI](https://cli.github.com/) (for example, as `some-user`), executing `degit some-repo` will implicitly act as if you entered `degit some-user/some-repo`.

Expand All @@ -28,7 +28,7 @@ _Requires Node 8 or above, because `async` and `await` are the cat's pyjamas_
## Installation

```bash
npm install -g gitcp
npm install -g gicp
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "gitcp",
"version": "2.32.0",
"name": "gicp",
"version": "2.33.0",
"engines": {
"node": ">=8.0.0"
},
"description": "Straightforward project scaffolding",
"main": "dist/index.js",
"bin": {
"degit": "degit",
"gitcp": "degit"
"gicp": "degit"
},
"scripts": {
"lint": "eslint --color --ignore-path .gitignore .",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ class Degit extends EventEmitter {
const repo_name = dest === '.' ? path.basename(path.resolve(dest)): dest
await exec(`cd ${dest} && \
git init && git add . && \
git commit -m "${this.message||'initial commit by gitcp'}" && \
git commit -m "${this.message||'initial commit by gicp'}" && \
gh repo create ${repo_name} --${this.public?'public':'private'} --source=. && \
git push --set-upstream origin master`)
} else if (this.git) {
Expand Down

0 comments on commit 937aca2

Please sign in to comment.