Package org.springframework.shell.core.annotation

Examples of org.springframework.shell.core.annotation.CliCommand.help()


          for (String value : cmd.value()) {
            sb.append("Keyword:                   ").append(value).append(OsUtils.LINE_SEPARATOR);
          }

          sb.append("Description:               ").append(cmd.help()).append(OsUtils.LINE_SEPARATOR);

          for (Annotation[] annotations : parameterAnnotations) {
            CliOption cliOption = null;
            for (Annotation a : annotations) {
              if (a instanceof CliOption) {
View Full Code Here


      SortedSet<String> result = new TreeSet<String>(COMPARATOR);
      for (MethodTarget mt : matchingTargets) {
        CliCommand cmd = mt.getMethod().getAnnotation(CliCommand.class);
        if (cmd != null) {
          for (String value : cmd.value()) {
            if ("".equals(cmd.help())) {
              result.add("* " + value);
            }
            else {
              result.add("* " + value + " - " + cmd.help());
            }
View Full Code Here

          for (String value : cmd.value()) {
            if ("".equals(cmd.help())) {
              result.add("* " + value);
            }
            else {
              result.add("* " + value + " - " + cmd.help());
            }
          }
        }
      }

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.