Package org.jnode.shell.syntax

Examples of org.jnode.shell.syntax.FileArgument


    private boolean verbose;
    private boolean onefs;

    public DeleteCommand() {
        super(help_super);
        argPaths     = new FileArgument("paths", Argument.MANDATORY | Argument.MULTIPLE | Argument.EXISTING, help_file);
        flagRecurse  = new FlagArgument("recursive", Argument.OPTIONAL, help_recurse);
        flagForce    = new FlagArgument("force", Argument.OPTIONAL, help_force);
        flagInteract = new FlagArgument("interactive", Argument.OPTIONAL, help_interact);
        flagVerbose  = new FlagArgument("verbose", Argument.OPTIONAL, help_verbose);
        flagOneFS    = new FlagArgument("onefs", 0, help_onefs);
View Full Code Here


    private boolean retry;
    private boolean first = true;
   
    public TailCommand() {
        super("Print the tail end of a list of files, or stdin.");
        Files        = new FileArgument("files", Argument.OPTIONAL | Argument.MULTIPLE, help_files);
        Bytes        = new StringArgument("bytes", Argument.EXISTING | Argument.OPTIONAL, help_bytes);
        Lines        = new StringArgument("lines", Argument.EXISTING | Argument.OPTIONAL, help_lines);
        Follow       = new FlagArgument("follow", Argument.OPTIONAL, help_follow);
        FollowR      = new FlagArgument("followr", Argument.OPTIONAL, help_follow_retry);
        MaxUnchanged = new IntegerArgument("unchanged", Argument.OPTIONAL, help_unchanged);
View Full Code Here

    private final FileArgument argFile;
    private final URLArgument argURL;

    public HexdumpCommand() {
        super(help_super);
        argFile = new FileArgument("file", Argument.OPTIONAL | Argument.EXISTING, help_file);
        argURL  = new URLArgument("url", Argument.OPTIONAL | Argument.EXISTING, help_url);
        registerArguments(argFile, argURL);
    }
View Full Code Here

    private boolean useStreams;
   
    public CatCommand() {
        super(HELP_SUPER);
        int fileFlags = Argument.MULTIPLE | Argument.EXISTING | FileArgument.HYPHEN_IS_SPECIAL;
        argFile    = new FileArgument("file", fileFlags, HELP_FILE);
        argNumNB   = new FlagArgument("num-nonblank", 0, HELP_NUM_NB);
        argNumAll  = new FlagArgument("num", 0, HELP_NUM);
        argEnds    = new FlagArgument("show-ends", 0, HELP_ENDS);
        argSqueeze = new FlagArgument("squeeze", 0, HELP_SQUEEZE);
        registerArguments(argFile, argNumNB, argNumAll, argEnds, argSqueeze);
View Full Code Here

    private boolean all;
   
    public DFCommand() {
        super(help_super);
        argDevice  = new DeviceArgument("device", Argument.EXISTING, help_device);
        argPath    = new FileArgument("path", Argument.EXISTING, help_path);
        argReadDec = new FlagArgument("human-read-dec", 0, help_read_dec);
        argReadBin = new FlagArgument("human-read-bin", 0, help_read_bin);
        argAll     = new FlagArgument("show-all", 0, help_all);
        argBlock1k = new FlagArgument("block-size-1k", 0, help_block_1k);
        argBlock   = new IntegerArgument("block-size", 0, help_block);
View Full Code Here

        nameArg     = new StringArgument("name", Argument.OPTIONAL, help_name);
        inameArg    = new StringArgument("iname", Argument.OPTIONAL, help_iname);
        maxdepthArg = new LongArgument("maxdepth", Argument.OPTIONAL, help_max_depth);
        mindepthArg = new LongArgument("mindepth", Argument.OPTIONAL, help_min_depth);
        typeArg     = new StringArgument("type", Argument.OPTIONAL, help_type);
        dirArg      = new FileArgument("directory", Argument.OPTIONAL | Argument.MULTIPLE, help_dir);
        registerArguments(dirArg, mindepthArg, maxdepthArg, inameArg, nameArg, typeArg);
    }
View Full Code Here

   
    private final FileArgument argFile;

    public TouchCommand() {
        super(help_super);
        argFile = new FileArgument("file", Argument.MANDATORY, help_file);
        registerArguments(argFile);
    }
View Full Code Here

    private final FlagArgument humanReadableArg;

    public DirCommand() {
        super(help_super);
        humanReadableArg = new FlagArgument("humanReadable", Argument.OPTIONAL, help_humanReadable);
        argPath = new FileArgument("path", Argument.OPTIONAL | Argument.MULTIPLE | Argument.EXISTING, help_path);
        registerArguments(argPath, humanReadableArg);
    }
View Full Code Here

     * Default constructor.
     */
    public TeeCommand() {
        super(HELP_SUPER);
        int fileFlags = Argument.MULTIPLE;
        argFile = new FileArgument("files", fileFlags, HELP_FILE);
        argAppend = new FlagArgument("append", 0, HELP_APPEND);
        registerArguments(argFile, argAppend);
    }
View Full Code Here

    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

TOP

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

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.