@crguezl/gh-repo-rename
v2.1.3
Published
gh extension repo rename
Downloads
2
Readme
Description
Renames a repo
Installation
Ypou can install it as a gh extension:
gh extension install crguezl/gh-repo-rename
or you can make use of the executable provided, installing as a npm module:ç ç
npm i -g @crguezl/gh-repo-rename
Usage
When you use it as a gh extension:
Usage: gh repo-rename [options]
Options:
-V, --version output the version number
-r, --repo <repo> repository
-o, --org <org> org
-n, --name <name> name
-h, --help display help for command
If you use the executable provided by the npm module:
$ repo-rename --help
Usage: repo-rename [options]
Options:
-V, --version output the version number
-r, --repo <repo> repository
-o, --org <org> org
-n, --name <name> name
-h, --help display help for command
You can also use it as a library:
const { getRepoId, renameRepo } = require ("@crguezl/gh-repo-rename");
console.log(getRepoId("crguezl", "gh-repo-rename"));
when we run the example we get:
node hello-reporename.js
R_kgDOGc881w
Author
Casiano