Class WcCommand
java.lang.Object
net.thevpc.nsh.cmd.NshBuiltinBase
net.thevpc.nsh.cmd.NshBuiltinDefault
net.thevpc.nsh.cmd.impl.posix.WcCommand
- All Implemented Interfaces:
NshBuiltin, NComponent
wc - print newline, word, and byte counts for each file
- Author:
- thevpc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidmain(NCmdLine cmdLine, NshExecutionContext context) protected booleannextNonOption(NArg arg, NCmdLine cmdLine, NshExecutionContext context) protected booleannextOption(NArg arg, NCmdLine cmdLine, NshExecutionContext context) Methods inherited from class NshBuiltinBase
autoComplete, cmdLine, createOptions, exec, getHelp, getHelpHeader, getName, init, isEnabled, setEnabled, throwExecutionException, validate
-
Constructor Details
-
WcCommand
public WcCommand()
-
-
Method Details
-
nextOption
- Specified by:
nextOptionin classNshBuiltinBase
-
nextNonOption
- Specified by:
nextNonOptionin classNshBuiltinBase
-
main
- Specified by:
mainin classNshBuiltinBase
-