Skip to content
Snippets Groups Projects
Select Git revision
  • f4ed114bbd21f1ca202b0a5030f5edc7672bce5c
  • main default protected
  • jw_sonar
  • v6.0.0 protected
  • interactive-mode-preference
  • bedran_exercise-list
  • add_route_user
  • Jw_sonar_backup
  • exercise_list_filter
  • assignment_filter
  • add_route_assignments
  • move-to-esm-only
  • 6.0.0-dev
  • Pre-alpha
  • 5.0.0
  • Latest
  • 4.2.0
  • 4.1.1
  • 4.1.0
  • 4.0.1
  • 4.0.0
  • 3.5.0
  • 3.4.2
  • 3.4.1
  • 3.3.0
  • 3.2.3
  • 3.2.2
  • 3.2.0
  • 3.1.2
  • 3.1.1
  • 3.1.0
  • 3.0.1
32 results

AuthTestCommand.ts

Blame
  • AuthTestCommand.ts 674 B
    import CommanderCommand from '../../CommanderCommand.js';
    import SessionManager   from '../../../managers/SessionManager.js';
    import Config           from '../../../config/Config';
    
    
    class AuthTestCommand extends CommanderCommand {
        protected commandName: string = 'test';
    
        protected defineCommand() {
            this.command
                .description('test availability of registered Dojo API and Gitlab API sessions')
                .action(this.commandAction.bind(this));
        }
    
        protected async commandAction(): Promise<void> {
            await SessionManager.testSession();
            await Config.gitlabManager.testToken();
        }
    }
    
    
    export default new AuthTestCommand();