Instantly share code, notes, and snippets.

Henrique Kuwai Rikezenho

View GitHub Profile
View cli-10.js
#!/usr/bin/env node
const program = require('commander');
const { join } = require('path');
const fs = require('fs');
const inquirer = require('inquirer');
const chalk = require('chalk');
const Table = require('cli-table');
const shell = require('shelljs');
const figlet = require('figlet');
View cli-09.js
#!/usr/bin/env node
const program = require('commander');
const { join } = require('path');
const fs = require('fs');
const inquirer = require('inquirer');
const chalk = require('chalk');
const Table = require('cli-table');
const shell = require('shelljs');
View cli-08.js
#!/usr/bin/env node
const program = require('commander');
const { join } = require('path');
const fs = require('fs');
const inquirer = require('inquirer');
const chalk = require('chalk');
const Table = require('cli-table');
const package = require('./package.json');
View cli-07.js
#!/usr/bin/env node
const program = require('commander');
const { join } = require('path');
const fs = require('fs');
const inquirer = require('inquirer');
const chalk = require('chalk');
const Table = require('cli-table');
const package = require('./package.json');
View cli-06.js
#!/usr/bin/env node
const program = require('commander');
const { join } = require('path');
const fs = require('fs');
const inquirer = require('inquirer');
const chalk = require('chalk');
const package = require('./package.json');
const todosPath = join(__dirname, 'todos.json');
View cli-05.js
#!/usr/bin/env node
const program = require('commander');
const { join } = require('path');
const fs = require('fs');
const inquirer = require('inquirer');
const chalk = require('chalk');
const package = require('./package.json');
const todosPath = join(__dirname, 'todos.json');
View cli-04.js
#!/usr/bin/env node
const program = require('commander');
const { join } = require('path');
const fs = require('fs');
const inquirer = require('inquirer');
const package = require('./package.json');
const todosPath = join(__dirname, 'todos.json');
View cli-03.js
#!/usr/bin/env node
const program = require('commander');
const { join } = require('path');
const fs = require('fs');
const inquirer = require('inquirer');
const package = require('./package.json');
const todosPath = join(__dirname, 'todos.json');
View cli-02.js
#!/usr/bin/env node
const program = require('commander');
const { join } = require('path');
const fs = require('fs');
const package = require('./package.json');
const todosPath = join(__dirname, 'todos.json');
const getJson = (path) => {
View cli-01.js
#!/usr/bin/env node
const program = require('commander');
const package = require('./package.json');
program.version(package.version);
program
.command('add [todo]')
.description('Adiciona um to-do')