Home Reference Source Test

src/lib/commands/generate/usage-guide.js

import generateUsageGuide from 'command-line-usage';
import optionDefinitions from './option-definitions';

/**
 * @private
 */
const usageGuide = generateUsageGuide([
  {
    header: 'Generate Seeder',
    content: 'Generate new seeder file into the seeder folder.',
  },
  {
    header: 'Synopsis',
    content: [
      '$ md-seed generate {underline seeder-name}',
      '$ md-seed g {underline seeder-name}',
      '$ md-seed g {bold --help}',
    ],
  },
  {
    header: 'Options',
    optionList: optionDefinitions,
  },
]);

export default usageGuide;