R
- the generic return type for all command signature methods
to support different implementor types; the methods of a
command factory for instance returns a command instance;
command builders can also implement this interface, but their
methods return the builder itself enabling for chained method
invocation to create joined commandspublic static interface Cd.Interface<R> extends CommandInterface<R>
Modifier and Type | Method and Description |
---|---|
R |
cd()
Changes the current directory to the user home directory as defined
by the execution context (usually the directory specified by the
"user.home" system property). |
R |
cd(File file)
The current working directory is changed to the given file.
|
R |
cd(String path)
The current working directory is changed to the given file.
|
R cd()
"user.home"
system property).<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailsR cd(File file)
file
- the file to use as input; relative paths are not resolved (use the
string path argument to enable relative path resolving based on the
current working directory).<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailsR cd(String path)
path
- the directory to become the new current working directory;
wildcards * and ? are supported; relative paths are resolved on the
basis of the current working directory.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailsCopyright © 2024. All rights reserved.