@@ -76,75 +76,155 @@ private static String resolveAliases(String input, ShellContext context) {
7676 private static final class CommandNames {
7777 private CommandNames () {}
7878 private static final String ALIAS = "alias" ;
79+ private static final String ARP = "arp" ;
80+ private static final String ASSOC = "assoc" ;
81+ private static final String ATTRIB = "attrib" ;
7982 private static final String CD = "cd" ;
83+ private static final String CHKDSK = "chkdsk" ;
84+ private static final String CHOICE = "choice" ;
8085 private static final String CLEARHISTORY = "clearhistory" ;
86+ private static final String CLIP = "clip" ;
8187 private static final String CLS = "cls" ;
8288 private static final String COLOR = "color" ;
89+ private static final String COMPACT = "compact" ;
8390 private static final String COPY = "copy" ;
8491 private static final String DATE = "date" ;
8592 private static final String DEL = "del" ;
8693 private static final String DIR = "dir" ;
94+ private static final String DRIVERQUERY = "driverquery" ;
8795 private static final String ECHO = "echo" ;
8896 private static final String EXIT = "exit" ;
97+ private static final String FC = "fc" ;
98+ private static final String FIND = "find" ;
99+ private static final String FINDSTR = "findstr" ;
100+ private static final String FORFILES = "forfiles" ;
101+ private static final String FSUTIL = "fsutil" ;
102+ private static final String FTYPE = "ftype" ;
103+ private static final String GETMAC = "getmac" ;
89104 private static final String HELP = "help" ;
90105 private static final String HISTORY = "history" ;
91106 private static final String HOSTNAME = "hostname" ;
92107 private static final String IPCONFIG = "ipconfig" ;
108+ private static final String LABEL = "label" ;
109+ private static final String LS = "ls" ;
93110 private static final String MKDIR = "mkdir" ;
111+ private static final String MORE = "more" ;
112+ private static final String MOVE = "move" ;
113+ private static final String MSG = "msg" ;
114+ private static final String NET = "net" ;
115+ private static final String NETSH = "netsh" ;
116+ private static final String NETSTAT = "netstat" ;
117+ private static final String NSLOOKUP = "nslookup" ;
118+ private static final String PATH = "path" ;
94119 private static final String PAUSE = "pause" ;
95120 private static final String PING = "ping" ;
96121 private static final String PWD = "pwd" ;
122+ private static final String REM = "rem" ;
97123 private static final String RENAME = "rename" ;
124+ private static final String REPLACE = "replace" ;
98125 private static final String RMDIR = "rmdir" ;
126+ private static final String ROBOCOPY = "robocopy" ;
127+ private static final String ROUTE = "route" ;
99128 private static final String SET = "set" ;
129+ private static final String SFC = "sfc" ;
130+ private static final String SHUTDOWN = "shutdown" ;
131+ private static final String SORT = "sort" ;
132+ private static final String START = "start" ;
100133 private static final String SYSTEMINFO = "systeminfo" ;
134+ private static final String TASKKILL = "taskkill" ;
101135 private static final String TASKLIST = "tasklist" ;
102136 private static final String TELNET = "telnet" ;
103137 private static final String TIME = "time" ;
138+ private static final String TIMEOUT = "timeout" ;
104139 private static final String TITLE = "title" ;
105140 private static final String TOUCH = "touch" ;
141+ private static final String TRACERT = "tracert" ;
106142 private static final String TREE = "tree" ;
107143 private static final String TYPE = "type" ;
108144 private static final String UNALIAS = "unalias" ;
109145 private static final String UPTIME = "uptime" ;
110146 private static final String VER = "ver" ;
147+ private static final String VERIFY = "verify" ;
148+ private static final String VOL = "vol" ;
111149 private static final String WHOAMI = "whoami" ;
150+ private static final String WMIC = "wmic" ;
151+ private static final String XCOPY = "xcopy" ;
112152 }
113153
114154 private static void registerCommands (Map <String , Command > commands ) {
115155 commands .put (CommandNames .ALIAS , new AliasCommand ());
156+ commands .put (CommandNames .ARP , new ArpCommand ());
157+ commands .put (CommandNames .ASSOC , new AssocCommand ());
158+ commands .put (CommandNames .ATTRIB , new AttribCommand ());
116159 commands .put (CommandNames .CD , new CdCommand ());
160+ commands .put (CommandNames .CHKDSK , new ChkdskCommand ());
161+ commands .put (CommandNames .CHOICE , new ChoiceCommand ());
117162 commands .put (CommandNames .CLEARHISTORY , new ClearHistoryCommand ());
163+ commands .put (CommandNames .CLIP , new ClipCommand ());
118164 commands .put (CommandNames .CLS , new ClsCommand ());
119165 commands .put (CommandNames .COLOR , new ColorCommand ());
166+ commands .put (CommandNames .COMPACT , new CompactCommand ());
120167 commands .put (CommandNames .COPY , new CopyCommand ());
121168 commands .put (CommandNames .DATE , new DateCommand ());
122169 commands .put (CommandNames .DEL , new DelCommand ());
123170 commands .put (CommandNames .DIR , new DirCommand ());
171+ commands .put (CommandNames .DRIVERQUERY , new DriverqueryCommand ());
124172 commands .put (CommandNames .ECHO , new EchoCommand ());
125173 commands .put (CommandNames .EXIT , new ExitCommand ());
174+ commands .put (CommandNames .FC , new FcCommand ());
175+ commands .put (CommandNames .FIND , new FindCommand ());
176+ commands .put (CommandNames .FINDSTR , new FindstrCommand ());
177+ commands .put (CommandNames .FORFILES , new ForfilesCommand ());
178+ commands .put (CommandNames .FSUTIL , new FsutilCommand ());
179+ commands .put (CommandNames .FTYPE , new FtypeCommand ());
180+ commands .put (CommandNames .GETMAC , new GetmacCommand ());
126181 commands .put (CommandNames .HELP , new HelpCommand (commands ));
127182 commands .put (CommandNames .HISTORY , new HistoryCommand ());
128183 commands .put (CommandNames .HOSTNAME , new HostnameCommand ());
129184 commands .put (CommandNames .IPCONFIG , new IpConfig ());
185+ commands .put (CommandNames .LABEL , new LabelCommand ());
186+ commands .put (CommandNames .LS , new LsCommand ());
130187 commands .put (CommandNames .MKDIR , new MkdirCommand ());
188+ commands .put (CommandNames .MORE , new MoreCommand ());
189+ commands .put (CommandNames .MOVE , new MoveCommand ());
190+ commands .put (CommandNames .MSG , new MsgCommand ());
191+ commands .put (CommandNames .NET , new NetCommand ());
192+ commands .put (CommandNames .NETSH , new NetshCommand ());
193+ commands .put (CommandNames .NETSTAT , new NetstatCommand ());
194+ commands .put (CommandNames .NSLOOKUP , new NslookupCommand ());
195+ commands .put (CommandNames .PATH , new PathCommand ());
131196 commands .put (CommandNames .PAUSE , new PauseCommand ());
132197 commands .put (CommandNames .PING , new PingCommand ());
133198 commands .put (CommandNames .PWD , new PwdCommand ());
199+ commands .put (CommandNames .REM , new RemCommand ());
134200 commands .put (CommandNames .RENAME , new RenameCommand ());
201+ commands .put (CommandNames .REPLACE , new ReplaceCommand ());
135202 commands .put (CommandNames .RMDIR , new RmdirCommand ());
203+ commands .put (CommandNames .ROBOCOPY , new RobocopyCommand ());
204+ commands .put (CommandNames .ROUTE , new RouteCommand ());
136205 commands .put (CommandNames .SET , new SetCommand ());
206+ commands .put (CommandNames .SFC , new SfcCommand ());
207+ commands .put (CommandNames .SHUTDOWN , new ShutdownCommand ());
208+ commands .put (CommandNames .SORT , new SortCommand ());
209+ commands .put (CommandNames .START , new StartCommand ());
137210 commands .put (CommandNames .SYSTEMINFO , new SysteminfoCommand ());
211+ commands .put (CommandNames .TASKKILL , new TaskkillCommand ());
138212 commands .put (CommandNames .TASKLIST , new TasklistCommand ());
139213 commands .put (CommandNames .TELNET , new TelnetCommand ());
140214 commands .put (CommandNames .TIME , new TimeCommand ());
215+ commands .put (CommandNames .TIMEOUT , new TimeoutCommand ());
141216 commands .put (CommandNames .TITLE , new TitleCommand ());
142217 commands .put (CommandNames .TOUCH , new TouchCommand ());
218+ commands .put (CommandNames .TRACERT , new TracertCommand ());
143219 commands .put (CommandNames .TREE , new TreeCommand ());
144220 commands .put (CommandNames .TYPE , new TypeCommand ());
145221 commands .put (CommandNames .UNALIAS , new UnaliasCommand ());
146222 commands .put (CommandNames .UPTIME , new UptimeCommand ());
147223 commands .put (CommandNames .VER , new VersionCommand ());
224+ commands .put (CommandNames .VERIFY , new VerifyCommand ());
225+ commands .put (CommandNames .VOL , new VolCommand ());
148226 commands .put (CommandNames .WHOAMI , new WhoamiCommand ());
227+ commands .put (CommandNames .WMIC , new WmicCommand ());
228+ commands .put (CommandNames .XCOPY , new XcopyCommand ());
149229 }
150230}
0 commit comments