@sparkbox/carbon-cli
Advanced tools
Comparing version
@@ -36,3 +36,9 @@ #!/usr/bin/env node | ||
newRemote = await github_1.createRepo(gh, projectName); | ||
await util_1.run(`cd ${projectDir} && git remote add origin ${newRemote.ssh_url}`); | ||
await util_1.run(` | ||
cd ${projectDir} && | ||
git remote add origin ${newRemote.ssh_url} && | ||
git add . && | ||
git commit --no-verify --no-gpg-sign -m "initial commit" && | ||
git push -u origin master | ||
`); | ||
status.succeed(); | ||
@@ -39,0 +45,0 @@ } |
@@ -24,3 +24,3 @@ "use strict"; | ||
name: 'sourceRepo', | ||
message: 'search repos', | ||
message: 'search for a repo to replicate', | ||
async source(answers, input) { | ||
@@ -35,4 +35,4 @@ input = input || ''; | ||
name: 'branch', | ||
message: 'branch', | ||
default: 'master', | ||
message: 'which branch', | ||
default: 'template', | ||
}, | ||
@@ -42,3 +42,3 @@ { | ||
name: 'projectName', | ||
message: 'project name', | ||
message: 'new project name', | ||
filter: util_1.kebabCase, | ||
@@ -45,0 +45,0 @@ transformer: displayAsPath, |
@@ -29,3 +29,3 @@ "use strict"; | ||
${gray.bold('url')} ${newRemote.url} | ||
${gray.bold('url')} ${newRemote.html_url} | ||
${gray.bold('ssh')} ${newRemote.ssh_url} | ||
@@ -32,0 +32,0 @@ ${gray.bold('https')} ${newRemote.clone_url}`; |
{ | ||
"name": "@sparkbox/carbon-cli", | ||
"version": "0.4.1-7633df6.0", | ||
"version": "0.5.0-5816481.0", | ||
"description": "Project Setup Automation", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
190317
0.09%381
1.6%