All files / src/test example.ts

100% Statements 13/13
100% Branches 0/0
100% Functions 0/0
100% Lines 13/13

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 421x 1x   1x   1x       1x   1x   1x           1x           1x   1x   1x           1x           1x
import { Tabler, TablerBorder, TablerAlign, TablerScheme, TablerColor } from '../';
import { Colurs } from 'colurs';
 
const colurs = new Colurs();
 
const table = new Tabler({
  width: 80, padding: 0
});
 
table.header('Tabler CLI Tables', TablerAlign.center);
 
table.footer({ text: '© 2018 Tabler', align: TablerAlign.center });
 
table.row(
  { text: 'app run --dev' },
  { text: 'Runs the app.' },
  { text: 'Alias: r', align: TablerAlign.right }
);
 
table.row(
  { text: 'app create <name>' },
  { text: 'Creates an app.' },
  { text: 'Alias: c', align: TablerAlign.right }
);
 
table.break();
 
table.section('Options:\n', TablerAlign.left);
 
table.row(
  { text: ' <name>' },
  { text: 'App name to create.' },
  { text: '[string] [required]', align: TablerAlign.right }
);
 
table.row(
  { text: ' --dev, -d' },
  { text: 'Runs in dev mode.' },
  { text: '[boolean]', align: TablerAlign.right }
);
 
export = table;