Package org.impalaframework.command.framework

Examples of org.impalaframework.command.framework.CommandDefinition


    // note that globalOverrides is true, so that the user will not be
    // prompted for the module name if it already there
    CommandInfo info = new CommandInfo(DIRECTORY_NAME, "Directory name",
        "Please enter directory to use as current working directory.", null, null, false, false, true, false);

    CommandDefinition definition = new CommandDefinition("Changes working directory");
    definition.add(info);
    return definition;
  }
View Full Code Here


      String description = "";

      Command command = commands.get(commandName);

      if (command != null) {
        CommandDefinition commandDefinition = command.getCommandDefinition();
        if (commandDefinition != null) {
          description = commandDefinition.getDescription();
        }
      }
     
      String aliasText = null;
      List<String> aliases = aliasLookups.get(commandName);
View Full Code Here

    }
    return true;
  }

  public CommandDefinition getCommandDefinition() {
    return new CommandDefinition("Shows usage of commands");
  }
View Full Code Here

    LoadDefinitionFromClassCommand command = new LoadDefinitionFromClassCommand();
    return command.execute(commandState);
  }

  public CommandDefinition getCommandDefinition() {
    return new CommandDefinition();
  }
View Full Code Here

        LoadDefinitionFromClassCommand command = new LoadDefinitionFromClassCommand();
        return command.execute(commandState);
    }

    public CommandDefinition getCommandDefinition() {
        return new CommandDefinition();
    }
View Full Code Here

            commandState.addProperty(ACTUAL_MODULE_RELOADED, new CommandPropertyValue(moduleToReload));
        InteractiveCommandUtils.printReloadInfo(moduleToReload, actualModule, watch);
    }

    public CommandDefinition getCommandDefinition() {
        return new CommandDefinition("Reloads root module and all child modules");
    }
View Full Code Here

        // note that globalOverrides is true, so that the user will not be
        // prompted for the module name if it already there
        CommandInfo info = new CommandInfo(DIRECTORY_NAME, "Directory name",
                "Please enter directory to use as current working directory.", null, null, false, false, true, false);

        CommandDefinition definition = new CommandDefinition("Changes working directory");
        definition.add(info);
        return definition;
    }
View Full Code Here

                return null;
            }

        };

        CommandDefinition commandDefinition = new CommandDefinition();
        commandDefinition.add(commandInfo);
        return commandDefinition;
    }
View Full Code Here

            System.out.print("No modules loaded");
        }
    }

    public CommandDefinition getCommandDefinition() {
        return new CommandDefinition("Displays metadata on loaded modules");
    }
View Full Code Here

   
    public CommandDefinition getCommandDefinition() {
        CommandInfo commandInfo = new CommandInfo("commandText", "Command text", "Please enter your command text",
                null, null, false, false, false, false);

        CommandDefinition commandDefinititon = new CommandDefinition();
        commandDefinititon.add(commandInfo);
        return commandDefinititon; 
    }
View Full Code Here

TOP

Related Classes of org.impalaframework.command.framework.CommandDefinition

Copyright © 2018 www.massapicom. 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.