Package org.jnode.shell.syntax

Examples of org.jnode.shell.syntax.StringArgument


    private final StringArgument argArgs;
   
    public RunCommand() {
        super(help_super);
        argFile =  new FileArgument("file", Argument.MANDATORY | Argument.EXISTING, help_file);
        argArgs = new StringArgument("args", Argument.OPTIONAL | Argument.MULTIPLE, help_args);
        registerArguments(argFile, argArgs);
    }
View Full Code Here


   
    public SetCommand() {
        super(help_super);
        keyArg   = new PropertyNameArgument("key", Argument.OPTIONAL, help_key);
        skeyArg  = new ShellPropertyNameArgument("skey", Argument.OPTIONAL, help_skey);
        valueArg = new StringArgument("value", Argument.OPTIONAL, help_value);
        shellArg = new FlagArgument("shell", Argument.OPTIONAL + Argument.SINGLE, help_shell);
        registerArguments(keyArg, skeyArg, valueArg, shellArg);
    }
View Full Code Here

    public OnHeapCommand() {
        super(HELP_SUPER);
        argMinInstanceCount = new IntegerArgument("minCount", Argument.OPTIONAL, 1, Integer.MAX_VALUE, HELP_INST);
        argMinTotalSize     = new LongArgument("minTotalSize", Argument.OPTIONAL, 1L, Long.MAX_VALUE, HELP_SIZE);
        className           = new StringArgument("className", Argument.OPTIONAL | Argument.MULTIPLE, HELP_CLASSNAME);
        registerArguments(argMinInstanceCount, argMinTotalSize, className);
    }
View Full Code Here

    public WLanCtlCommand() {
        super(help_super);
        argSetEssid = new FlagArgument("setEssid", Argument.OPTIONAL, help_set);
        argDevice   = new DeviceArgument("device", Argument.MANDATORY, help_dev, WirelessNetDeviceAPI.class);
        argValue    = new StringArgument("value", Argument.OPTIONAL, help_value);
        registerArguments(argSetEssid, argDevice, argValue);
    }
View Full Code Here

        Update  = new FlagArgument("update", Argument.OPTIONAL, help_update);
        Test    = new FlagArgument("test", Argument.OPTIONAL, help_test);
        Move    = new FlagArgument("move", Argument.OPTIONAL, help_move);
        List    = new FlagArgument("list", Argument.OPTIONAL, help_list);
        NoPath  = new FlagArgument("no-path", Argument.OPTIONAL, help_no_path);
        Patterns = new StringArgument("patterns", Argument.OPTIONAL | Argument.MULTIPLE, help_patterns);
        Archive = new FileArgument("archive", Argument.MANDATORY, help_archive);
    }
View Full Code Here

       
        FilesStdin   = new FlagArgument("files-stdin", Argument.OPTIONAL, help_files_stdin);
        NoDirEntry   = new FlagArgument("no-dirs", Argument.OPTIONAL, help_no_dir);
        Recurse      = new FlagArgument("recurse", Argument.OPTIONAL, help_recurse);
        TmpDir       = new FileArgument("tmp-dir", Argument.OPTIONAL | Argument.EXISTING, help_tmpdir);
        NoCompress   = new StringArgument("no-compress", Argument.OPTIONAL, help_no_compress);
        NewerThan    = new StringArgument("newer", Argument.OPTIONAL, help_newer_than);
        OlderThan    = new StringArgument("older", Argument.OPTIONAL, help_older_than);
        Exclude      = new StringArgument("exclude", Argument.OPTIONAL | Argument.MULTIPLE, help_exclude);
        Include      = new StringArgument("include", Argument.OPTIONAL | Argument.MULTIPLE, help_include);
        registerArguments(FilesStdin, TmpDir, NoDirEntry, NoCompress, Recurse, NewerThan, OlderThan, Exclude, Include);
    }
View Full Code Here

    public LoadkeysCommand() {
        super(help_super);
        argLayout   = new KeyboardLayoutArgument("layout", Argument.OPTIONAL, help_layout);
        argCountry  = new CountryArgument("country", Argument.OPTIONAL, help_country);
        argLanguage = new LanguageArgument("language", Argument.OPTIONAL, help_lang);
        argVariant  = new StringArgument("variant", Argument.OPTIONAL, help_variant);
        argTriple   = new FlagArgument("triple", Argument.OPTIONAL, help_triple);
        argAdd      = new FlagArgument("add", Argument.OPTIONAL, help_add);
        argRemove   = new FlagArgument("remove", Argument.OPTIONAL, help_remove);
        argSet      = new FlagArgument("set", Argument.OPTIONAL, help_set);
        argClass    = new ClassNameArgument("class", Argument.OPTIONAL, help_class);
View Full Code Here

   
    private final StringArgument argWords;

    public EchoCommand() {
        super(help_super);
        argWords = new StringArgument("text", Argument.MULTIPLE, help_words);
        registerArguments(argWords);
    }
View Full Code Here

    public CutCommand() {
        super(help_super);
        argByteRange  = new NumberListArgument("byte-range", 0, 1, Integer.MAX_VALUE - 1, help_byte);
        argCharRange  = new NumberListArgument("char-range", 0, 1, Integer.MAX_VALUE - 1, help_char);
        argFieldRange = new NumberListArgument("field-range", 0, 1, Integer.MAX_VALUE - 1, help_field);
        argInDelim    = new StringArgument("in-delim", 0, help_in_delim);
        argOutDelim   = new StringArgument("out-delim", 0, help_out_delim);
        argFiles      = new FileArgument("files", 0, help_files);
        argSuppress   = new FlagArgument("suppress", 0, help_suppress);
        argComplement = new FlagArgument("complement", 0, help_complement);
        registerArguments(argByteRange, argCharRange, argFieldRange, argInDelim, argOutDelim, argFiles);
        registerArguments(argSuppress, argComplement);
View Full Code Here

        registerArguments(ShowCount, ShowFileNoMatch, ShowFileMatch, ShowOnlyMatch);
       
        PrefixByte   = new FlagArgument("prefix-byte", 0, help_prefix_byte);
        PrefixFile   = new FlagArgument("prefix-file", 0, help_prefix_file);
        PrefixNoFile = new FlagArgument("prefix-nofile", 0, help_prefix_nofile);
        PrefixLabel  = new StringArgument("prefix-label", 0, help_prefix_label);
        PrefixLine   = new FlagArgument("prefix-line", 0, help_prefix_line);
        PrefixTab    = new FlagArgument("prefix-tab", 0, help_prefix_tab);
        PrefixNull   = new FlagArgument("prefix-null", 0, help_prefix_null);
        registerArguments(PrefixByte, PrefixFile, PrefixNoFile, PrefixLabel, PrefixLine, PrefixTab, PrefixNull);
       
        ContextAfter  = new IntegerArgument("show-context-after", 0, help_context_after);
        ContextBefore = new IntegerArgument("show-context-before", 0, help_context_before);
        ContextBoth   = new IntegerArgument("show-context-both", 0, help_context_both);
        registerArguments(ContextAfter, ContextBefore, ContextBoth);
       
        ModeBinary     = new StringArgument("mode-binary", 0, help_mode_binary);
        ModeDevice     = new StringArgument("mode-device", 0, help_mode_device);
        ModeDir        = new StringArgument("mode-dir", 0, help_mode_dir);
        ModeBinaryText = new FlagArgument("mode-binary-text", 0, help_mode_binary_text);
        ModeBinarySkip = new FlagArgument("mode-binary-skip", 0, help_mode_binary_skip);
        ModeDirRecurse = new FlagArgument("mode-dir-recurse", 0, help_mode_dir_recurse);
        Exclude        = new StringArgument("pattern-exclude", 0, help_exclude);
        ExcludeFile    = new FileArgument("pattern-exclude-file", Argument.EXISTING, help_exclude_file);
        ExcludeDir     = new StringArgument("pattern-exclude-dir", 0, help_exclude_dir);
        Include        = new StringArgument("pattern-include", 0, help_include);
        registerArguments(ModeBinary, ModeBinaryText, ModeBinarySkip, ModeDevice, ModeDir, ModeDirRecurse);
        registerArguments(Exclude, ExcludeFile, ExcludeDir, Include);
       
        NullTerm = new FlagArgument("null-term", 0, help_null_term);
        Patterns = new StringArgument("patterns", Argument.MULTIPLE | Argument.MANDATORY, help_patterns);
        PatternFiles = new FileArgument("pattern-files", Argument.MULTIPLE | Argument.EXISTING, help_pattern_files);
        Files = new
            FileArgument("files", Argument.MULTIPLE | Argument.EXISTING | FileArgument.HYPHEN_IS_SPECIAL, help_files);
        registerArguments(Patterns, PatternFiles, Files, NullTerm);
       
View Full Code Here

TOP

Related Classes of org.jnode.shell.syntax.StringArgument

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.