Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
feat(logging): added status output for the steps
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Feb 3, 2019
1 parent e310096 commit f3f806b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/create.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import chalk from 'chalk';
import {factory} from './github-client-factory';

export default function (name, visibility) {
console.error(chalk.grey('Creating repository on GitHub')); // eslint-disable-line no-console

return factory().repos.createForAuthenticatedUser({name, private: 'Private' === visibility});
}
2 changes: 1 addition & 1 deletion src/scaffolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import scaffoldSettings from './settings-scaffolder';
import create from './create';

export function scaffold({name, projectRoot, projectType, description, homepage, visibility}) {
console.log(chalk.blue('Generating GitHub')); // eslint-disable-line no-console
console.error(chalk.blue('Generating GitHub')); // eslint-disable-line no-console

return Promise.all([
scaffoldSettings(projectRoot, name, description, homepage, visibility, projectType),
Expand Down
3 changes: 3 additions & 0 deletions src/settings-scaffolder.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import chalk from 'chalk';
import writeYaml from '../third-party-wrappers/write-yaml';

export default function scaffoldSettings(projectRoot, name, description, homepage, visibility, projectType) {
console.error(chalk.grey('Writing settings file')); // eslint-disable-line no-console

return writeYaml(`${projectRoot}/.github/settings.yml`, {
repository: {
name,
Expand Down

0 comments on commit f3f806b

Please sign in to comment.