Created
January 31, 2023 20:05
-
-
Save goyaljai/611857f99b08b7ecd6aa41b52dea25ee to your computer and use it in GitHub Desktop.
config.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func config parseArgs(ctx Context, args []string) { | |
for i := 0; i < len(args); i++ { | |
arg := strings.TrimSpace(args[i]) | |
... | |
if arg == "--skip-ninja" { | |
c.skipNinja = true | |
} else if arg == "--skip-make" { | |
c.skipConfig = true | |
c.skipKati = true | |
} else if arg == "--skip-kati" { | |
c.skipKati = true | |
} else if arg == "--soong-only" { | |
c.skipKati = true | |
c.skipKatiNinja = true | |
... | |
c.arguments = append(c.arguments, arg) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment