How to use turbo-git-config - 10 common examples

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 () {
    'use strict';

    var childProcess = require('child_process'),
        inquirer = require('inquirer'),
        configParser = require('turbo-git-config').parser,
        utils = require('turbo-git-config').utils,
        Promise = require('promise');

    require('colors');

    init();

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

    var childProcess = require('child_process'),
        inquirer = require('inquirer'),
        configParser = require('turbo-git-config').parser,
        utils = require('turbo-git-config').utils,
        Promise = require('promise');

    require('colors');

    init();

    function init() {
        inquirer
            .prompt([{
                type: 'list',
                name: 'tag',
                message: configParser.getCommitPromptText('tag'),
                choices: configParser.getTagsFormat()
            }])
            .then(function (answers) {
github labs-js / turbo-git / bin / turbo-add.js View on Github external
(function() {
    'use strict';
    var Add = require('turbo-git-add'),
        addCommand = new Add();

    require('turbo-git-config').parse;

    addCommand.init();
})();
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();
            });
github labs-js / turbo-git / lib / commands / add.js View on Github external
gitStatusPorcelain.stdout.on('data', function(data) {
                var files = this.getNoStagedFiles(data);

                if (files.length === 0) {
                    utils.showError('No files to add');
                    return;
                }

                files.unshift(addAll);
                this.promptFileSelection(files);

            }.bind(this));
        };
github labs-js / turbo-git / lib / commands / log.js View on Github external
function executeGitPreLogCallback(err, gitTitles) {
        var gitLogUserCommand;

        if (err) { utils.showError(err); return; }
        gitLogTitles = gitTitles;
        gitLogUserCommand = configParser.getLogCommand();
        childProcess.exec(gitLogUserCommand, executeGitLogCallback);
    }