How to use the turbo-git-config.parser.getCommitPromptText function in turbo-git-config

To help you get started, we’ve selected a few turbo-git-config examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github labs-js / turbo-git / lib / commands / commit.js View on Github external
function init() {
        inquirer
            .prompt([{
                type: 'list',
                name: 'tag',
                message: configParser.getCommitPromptText('tag'),
                choices: configParser.getTagsFormat()
            }])
            .then(function (answers) {
                var tagTitle = answers.tag;

                showPrompts(tagTitle);
            });
    }
github labs-js / turbo-git / lib / commands / commit.js View on Github external
function showPrompts(tagTitle) {
        var commitText = '',
            tagTitleLength = tagTitle.length,
            fieldTexts = {
                'title': configParser.getCommitPromptText('title'),
                'component': configParser.getCommitPromptText('component'),
                'desc': configParser.getCommitPromptText('desc')
            };

        commitText += tagTitle;

        onComponentPrompt('component', fieldTexts.component).then(function (componentInput) {
            if (componentInput){
                commitText += '('+componentInput+'): ';
            }
            nextStepTitle();
        });

        function nextStepTitle() {
            onTitlePrompt('title', fieldTexts.title).then(function (titleInput) {
                commitText += titleInput;
github labs-js / turbo-git / lib / commands / commit.js View on Github external
function showPrompts(tagTitle) {
        var commitText = '',
            tagTitleLength = tagTitle.length,
            fieldTexts = {
                'title': configParser.getCommitPromptText('title'),
                'component': configParser.getCommitPromptText('component'),
                'desc': configParser.getCommitPromptText('desc')
            };

        commitText += tagTitle;

        onComponentPrompt('component', fieldTexts.component).then(function (componentInput) {
            if (componentInput){
                commitText += '('+componentInput+'): ';
            }
            nextStepTitle();
        });

        function nextStepTitle() {
            onTitlePrompt('title', fieldTexts.title).then(function (titleInput) {
                commitText += titleInput;
                nextStepDesc();
github labs-js / turbo-git / lib / commands / commit.js View on Github external
function showPrompts(tagTitle) {
        var commitText = '',
            tagTitleLength = tagTitle.length,
            fieldTexts = {
                'title': configParser.getCommitPromptText('title'),
                'component': configParser.getCommitPromptText('component'),
                'desc': configParser.getCommitPromptText('desc')
            };

        commitText += tagTitle;

        onComponentPrompt('component', fieldTexts.component).then(function (componentInput) {
            if (componentInput){
                commitText += '('+componentInput+'): ';
            }
            nextStepTitle();
        });

        function nextStepTitle() {
            onTitlePrompt('title', fieldTexts.title).then(function (titleInput) {
                commitText += titleInput;
                nextStepDesc();
            });