Examples of HelpCommand


Examples of org.apache.stratos.cli.commands.HelpCommand

    options.addOption(CliConstants.DEBUG_OPTION, false, "Enable debug logging");
    return options;
  }

  private void createCommands() {
    Command<StratosCommandContext> command = new HelpCommand();
    commands.put(command.getName(), command);

    command = new ExitCommand();
    commands.put(command.getName(), command);

    command = new SubscribeCommand();
    commands.put(command.getName(), command);

    command = new UnsubscribeCommand();
    commands.put(command.getName(), command);
   
    command = new ListCartridgesCommand();
    commands.put(command.getName(), command);

        command = new AddTenantCommand();
        commands.put(command.getName(), command);

        //command = new DeleteTenantCommand();
        //commands.put(command.getName(), command);

        command = new ListAllTenants();
        commands.put(command.getName(), command);

        command = new DeactivateTenantCommand();
        commands.put(command.getName(), command);

        command = new ActivateTenantCommand();
        commands.put(command.getName(), command);

        command = new CartridgeDeploymentCommand();
        commands.put(command.getName(), command);

        command = new PartitionDeploymentCommand();
        commands.put(command.getName(), command);

        command = new AutoscalingPolicyDeploymentCommand();
        commands.put(command.getName(), command);

        command = new DeployServiceDeploymentCommand();
        commands.put(command.getName(), command);

        command = new UndeployServiceDefinitionCommand();
        commands.put(command.getName(), command);

        command = new ListDeployServiceCommand();
        commands.put(command.getName(), command);

        command = new UndeployCartridgeDefinitionCommand();
        commands.put(command.getName(), command);

        command = new DeploymentPolicyDeploymentCommand();
        commands.put(command.getName(), command);
   
    command = new ListSubscribedCartridgesCommand();
    commands.put(command.getName(), command);

        command = new PartitionCommand();
        commands.put(command.getName(), command);

        command = new AutoscalePolicyCommand();
        commands.put(command.getName(), command);

        command = new DeploymentPolicyCommand();
        commands.put(command.getName(), command);
   
    command = new ListMemberCommand();
    commands.put(command.getName(), command);

        command = new DescribeCartridgeCommand();
        commands.put(command.getName(), command);

        command = new DescribePartitionCommand();
        commands.put(command.getName(), command);

        command = new DescribeDeploymentPolicyCommand();
        commands.put(command.getName(), command);

        command = new DescribeAutoScalingPolicyCommand();
        commands.put(command.getName(), command);
       
        command = new SubscribedCartridgeInfoCommand();
        commands.put(command.getName(), command);
   
    //command = new AddDomainMappingCommand();
    //commands.put(command.getName(), command);
   
    //command = new RemoveDomainMappingCommand();
    //commands.put(command.getName(), command);
   
    command = new SyncCommand();
    commands.put(command.getName(), command);
   
    //command = new PoliciesCommand();
    //commands.put(command.getName(), command);

    if (logger.isDebugEnabled()) {
View Full Code Here

Examples of org.bladerunnerjs.plugin.plugins.commands.core.HelpCommand

      {
        logger.println(e.getMessage());
        logger.println("--------");
        logger.println("");
      }
      return doRunCommand(brjs, new String[] {new HelpCommand().getCommandName() });
    }
    catch (CommandArgumentsException e) {
      logger.println("Problem:");
      logger.println("  " + e.getMessage());
      logger.println("");
View Full Code Here

Examples of org.bladerunnerjs.plugin.plugins.commands.core.HelpCommand

 
  public CommandList(BRJS brjs, List<CommandPlugin> pluginCommands)
  {
    this.pluginCommands = pluginCommands;
   
    CommandPlugin helpCommand = new HelpCommand();
    CommandPlugin versionCommand = new VersionCommand();
   
    helpCommand.setBRJS(brjs);
    versionCommand.setBRJS(brjs);
   
    coreCommands.add(helpCommand);
    coreCommands.add(versionCommand);
  }
View Full Code Here

Examples of org.exoplatform.frameworks.jcr.cli.HelpCommand

   }

   public void testHelpCommand() throws Exception
   {
      params.clear();
      HelpCommand helpCommand = (HelpCommand)cservice.getCatalog("CLI").getCommand("help");
      // params.add("addnode");
      ctx.put(PARAMETERS_KEY, params);
      helpCommand.execute(ctx);
      System.out.println("[out]:" + ctx.getOutput());
      assertTrue(ctx.getOutput().contains("addnode"));
   }
View Full Code Here

Examples of org.exoplatform.frameworks.jcr.cli.HelpCommand

   }

   public void testHelpCommand() throws Exception
   {
      params.clear();
      HelpCommand helpCommand = (HelpCommand)cservice.getCatalog("CLI").getCommand("help");
      // params.add("addnode");
      ctx.put(PARAMETERS_KEY, params);
      helpCommand.execute(ctx);

      assertTrue(ctx.getOutput().contains("addnode"));
   }
View Full Code Here

Examples of org.exoplatform.frameworks.jcr.cli.HelpCommand

   }

   public void testHelpCommand() throws Exception
   {
      params.clear();
      HelpCommand helpCommand = (HelpCommand)cservice.getCatalog("CLI").getCommand("help");
      // params.add("addnode");
      ctx.put(PARAMETERS_KEY, params);
      helpCommand.execute(ctx);

      assertTrue(ctx.getOutput().contains("addnode"));
   }
View Full Code Here

Examples of org.foo.shell.commands.HelpCommand

  }

  private Command getExecuteCommand(BundleContext context) throws IOException {
    Map<String, Command> commands = new HashMap<String, Command>();

    commands.put("help", new HelpCommand(commands).setContext(context).setHelp("help - display commands."));
    commands.put("install", new InstallCommand().setContext(context).setHelp(
      "install <url> - Install the bundle jar at the given url."));
    commands.put("start", new StartCommand().setContext(context).setHelp(
      "start <id> - Start the bundle with the given bundle id."));
    commands.put("stop", new StopCommand().setContext(context).setHelp(
View Full Code Here

Examples of org.qi4j.tools.shell.help.HelpCommand

        new Main().run( args );
    }

    public Main()
    {
        this.commands.add( new HelpCommand() );
        this.commands.add( new CreateProject() );
    }
View Full Code Here

Examples of org.qi4j.tools.shell.help.HelpCommand

            System.out.println( "Qi4j - Classes are Dead. Long Live Interfaces!" );
            System.out.println( "----------------------------------------------\n" );
        }
        if( args.length == 0 )
        {
            HelpCommand helpCommand = new HelpCommand();
            helpCommand.setCommands( commands );
            helpCommand.execute( args, input(), output() );
        }
    }
View Full Code Here

Examples of org.semanticweb.HermiT.debugger.commands.HelpCommand

        registerCommand(new ClearCommand(this));
        registerCommand(new ContinueCommand(this));
        registerCommand(new DerivationTreeCommand(this));
        registerCommand(new ExitCommand(this));
        registerCommand(new ForeverCommand(this));
        registerCommand(new HelpCommand(this));
        registerCommand(new HistoryCommand(this));
        registerCommand(new IsAncestorOfCommand(this));
        registerCommand(new ModelStatsCommand(this));
        registerCommand(new NodesForCommand(this));
        registerCommand(new OriginStatsCommand(this));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.