Skip to content

Commit

Permalink
refactor(CLI Onboarding): Move dashboard-set-org from plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrzesik committed Jul 20, 2021
1 parent adef710 commit afdf77c
Show file tree
Hide file tree
Showing 13 changed files with 1,846 additions and 4 deletions.
3 changes: 0 additions & 3 deletions lib/cli/interactive-setup/dashboard-login.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const _ = require('lodash');
const { ServerlessSDK } = require('@serverless/platform-client');
const login = require('@serverless/dashboard-plugin/lib/login');
const configUtils = require('@serverless/utils/config');
const { StepHistory } = require('@serverless/utils/telemetry');

const loginOrRegisterQuestion = async (inquirer) =>
(
Expand Down Expand Up @@ -66,8 +65,6 @@ module.exports = {
return !isLoggedIn;
},
async run(context) {
// TODO: Remove check for `StepHistory` after releasing new major version
if (!_.get(context.stepHistory, 'set')) context.stepHistory = new StepHistory();
process.stdout.write('You are not logged in or you do not have a Serverless account.\n\n');
return steps.loginOrRegister(context);
},
Expand Down

0 comments on commit afdf77c

Please sign in to comment.