From 8246f6bee6fc810e1b2e20141269832d9f762dd2 Mon Sep 17 00:00:00 2001 From: Julien Lengrand-Lambert Date: Mon, 23 Apr 2018 11:10:53 +0200 Subject: [PATCH] Give more relevant text to the user --- .gitignore | 1 + lib/commands/getAllAssigned/index.js | 1 + lib/commands/getAllSubmitted/index.js | 1 + lib/commands/verify/index.js | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index cbe7927..2816eff 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules .config yarn-error.log coverage +package-lock.json \ No newline at end of file diff --git a/lib/commands/getAllAssigned/index.js b/lib/commands/getAllAssigned/index.js index ae0afbb..4a10d6a 100644 --- a/lib/commands/getAllAssigned/index.js +++ b/lib/commands/getAllAssigned/index.js @@ -8,6 +8,7 @@ const { printMergeRequest } = require('../../utils/printMergeRequest'); const { simplifyMergeRequest } = require('../../utils/simplifyMergeRequest'); const getAllAssigned = async({ userId }) => { + spinner.text = "Retrieving all Merge Requests assigned to you" spinner.start(); const params = { assignee_id: userId diff --git a/lib/commands/getAllSubmitted/index.js b/lib/commands/getAllSubmitted/index.js index 7c49d3c..fbc48be 100644 --- a/lib/commands/getAllSubmitted/index.js +++ b/lib/commands/getAllSubmitted/index.js @@ -8,6 +8,7 @@ const { printMergeRequest } = require('../../utils/printMergeRequest'); const { simplifyMergeRequest } = require('../../utils/simplifyMergeRequest'); const getAllSubmitted = async({ userId }) => { + spinner.text = "Retrieving all Merge Requests that you submitted" spinner.start(); const params = { author_id: userId diff --git a/lib/commands/verify/index.js b/lib/commands/verify/index.js index bdf4999..4c26a67 100644 --- a/lib/commands/verify/index.js +++ b/lib/commands/verify/index.js @@ -9,7 +9,7 @@ const UNAUTHORIZED_MESSAGE = '401 Unauthorized'; const verify = async({ userId }) => { try { - logger.log('Verifying your config'); + spinner.text = "Verifying your config" spinner.start(); const userResp = await doFetch(`users/${userId}`);