adding more commands and such

This commit is contained in:
Arjun Patel
2022-02-13 20:32:55 -08:00
parent 61ae7b2b4b
commit a5ef33aa3d
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -6,7 +6,9 @@ export function parser(command: string) {
// if it's just a command, then don't do anything // if it's just a command, then don't do anything
// return command object based on currently entered string // return command object based on currently entered string
// then can use that command object to see if it's complete or not // then can use that command object to see if it's complete or not
// build some sort of tree for finding out the options for a user while they are typing // build some sort of tree for finding out the options for a user while they are typing
// go through each token, // go through each token,
// check if the currToken is a command // check if the currToken is a command
// if not, then mark it as an argument or option depending on if it has "--" flag or not // if not, then mark it as an argument or option depending on if it has "--" flag or not
+1 -1
View File
@@ -4,7 +4,7 @@ import Option from "./option";
export enum CommandType { export enum CommandType {
git = "git", git = "git",
npm = "npm", npm = "npm",
commit = "git commit", commit = "commit"
} }
export default class Command { export default class Command {