Skip to content
Snippets Groups Projects
Select Git revision
  • 6833b61a925099b43cb7e2f04491fe02ad91d33b
  • 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

SessionGitlabCommand.ts

Blame
  • SessionGitlabCommand.ts 1.01 KiB
    import CommanderCommand           from '../../CommanderCommand';
    import SessionGitlabLoginCommand  from './SessionGitlabLoginCommand';
    import SessionGitlabLogoutCommand from './SessionGitlabLogoutCommand';
    
    
    class SessionGitlabCommand extends CommanderCommand {
        protected commandName: string = 'gitlab';
    
        private static _instance: SessionGitlabCommand;
    
        private constructor() { super(); }
    
        public static get instance(): SessionGitlabCommand {
            if ( !SessionGitlabCommand._instance ) {
                SessionGitlabCommand._instance = new SessionGitlabCommand();
            }
    
            return SessionGitlabCommand._instance;
        }
    
        protected defineCommand() {
            this.command
            .description('manage Gitlab session');
        }
    
        protected defineSubCommands() {
            SessionGitlabLoginCommand.registerOnCommand(this.command);
            SessionGitlabLogoutCommand.registerOnCommand(this.command);
        }
    
        protected async commandAction(): Promise<void> { }
    }
    
    
    export default SessionGitlabCommand.instance;