How to use the turbo-git-config.utils.showError 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 / 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);
    }
github labs-js / turbo-git / lib / commands / commit.js View on Github external
return onAskFor(field, desc).then(function (title) {
            if (!title) {
                utils.showError('Title is mandatory');
                return onTitlePrompt(field, desc);
            }
            return Promise.resolve(' ' + title);
        });
    }
github labs-js / turbo-git / lib / commands / commit.js View on Github external
childProcess.exec('git commit -m "' + commitMessage + '"', function (error) {
            if (error) {
                utils.showError('Nothing to commit, you need to do a `git add` before commit');
            }
        });
    }