Examples of AliasArgument


Examples of org.jnode.shell.syntax.AliasArgument

            if (builtinName.startsWith(token.text)) {
                completions.addCompletion(builtinName);
            }
        }
        ArgumentCompleter ac = new ArgumentCompleter(
                new AliasArgument("?", Argument.MANDATORY, null), token);
        ac.complete(completions, shell);
        ac = new ArgumentCompleter(
                new BjorneAliasNameArgument("?", context, Argument.MANDATORY, null), token);
        ac.complete(completions, shell);
    }
View Full Code Here

Examples of org.jnode.shell.syntax.AliasArgument

            }
        } else {
            // We haven't got a command name yet, so complete the partial command name string
            // as an AliasArgument.
            ArgumentCompleter ac = new ArgumentCompleter(
                    new AliasArgument("cmdName", Argument.SINGLE), commandToken);
            ac.complete(completions, shell);
        }
    }
View Full Code Here

Examples of org.jnode.shell.syntax.AliasArgument

    private FlagArgument argDump;
    private FlagArgument argDumpAll;
   
    public SyntaxCommand() {
        super(help_super);
        argAlias   = new AliasArgument("alias", Argument.OPTIONAL, help_alias);
        argFile    = new FileArgument("file", Argument.OPTIONAL, help_file);
        argRemove  = new FlagArgument("remove", Argument.OPTIONAL, help_remove);
        argDump    = new FlagArgument("dump", Argument.OPTIONAL, help_dump);
        argDumpAll = new FlagArgument("dumpAll", Argument.OPTIONAL, help_dump_all);
        registerArguments(argAlias, argFile, argRemove, argDump, argDumpAll);
View Full Code Here

Examples of org.jnode.shell.syntax.AliasArgument

    private final ClassNameArgument argClass;
    private final AliasArgument argRemove;
   
    public AliasCommand() {
        super(help_super);
        argAlias  = new AliasArgument("alias", Argument.OPTIONAL, help_alias);
        argClass  = new ClassNameArgument("className", Argument.OPTIONAL, help_class);
        argRemove = new AliasArgument("remove", Argument.OPTIONAL, help_remove);
        registerArguments(argAlias, argClass, argRemove);
    }
View Full Code Here

Examples of org.jnode.shell.syntax.AliasArgument

    private final AliasArgument Alias;
    private final StringArgument Args;
   
    public TimeCommand() {
        super(help_super);
        Alias = new AliasArgument("alias", Argument.MANDATORY, help_alias);
        Args  = new StringArgument("args", Argument.MULTIPLE, help_args);
        registerArguments(Alias, Args);
    }
View Full Code Here

Examples of org.jnode.shell.syntax.AliasArgument

   
    private final AliasArgument argAlias;

    public HelpCommand() {
        super(help_super);
        argAlias = new AliasArgument("alias", Argument.OPTIONAL, help_alias);
        registerArguments(argAlias);
    }
View Full Code Here

Examples of org.jnode.shell.syntax.AliasArgument

    private final ClassNameArgument ARG_CLASS;
    private final AliasArgument ARG_REMOVE;

    public MyAliasCommand() {
        super("list, set or remove JNode command aliases");
        ARG_ALIAS = new AliasArgument("alias", Argument.OPTIONAL, "the alias to be added");
        ARG_CLASS = new ClassNameArgument("classname", Argument.OPTIONAL, "the classname");
        ARG_REMOVE = new AliasArgument("remove", Argument.OPTIONAL, "the alias to be removed");
        registerArguments(ARG_ALIAS, ARG_CLASS, ARG_REMOVE);
    }
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.