[mac] experimental

This commit is contained in:
Lea Anthony
2021-10-14 20:35:45 +11:00
parent 450eb2e7ae
commit 15cd325034

View File

@@ -99,6 +99,22 @@ func AddSubcommand(app *clir.Cli, w io.Writer) error {
logger := clilogger.New(w)
app.PrintBanner()
experimental := false
userTags := []string{}
for _, tag := range strings.Split(flags.tags, " ") {
thisTag := strings.TrimSpace(tag)
if thisTag != "" {
userTags = append(userTags, thisTag)
}
if thisTag == "exp" {
experimental = true
}
}
if runtime.GOOS == "darwin" && !experimental {
return fmt.Errorf("MacOS version coming soon!")
}
cwd, err := os.Getwd()
if err != nil {
return err