Home Identifier Source Test Repository

src/cli/cmd-config.es6

import * as action from '../acts/config';

export default function () {
    return this
        .title('Config initialization command')
        .helpful()
        .opt()
            .name('name')
            .title('Name of configuration file')
            .short('n').long('name')
            .req()
            .end()
        .act((opts) => {
            action.createConfigFile(opts.name);
        });
}