File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 name : assemblyai
4545 email : support@assemblyai.com
4646 post_install : |
47- etc.install "assemblyai welcome -i -v={{ .Tag }} -a={{ .Arch }} - m=brew -o={{ .Os }} "
47+ etc.install "assemblyai welcome -i -v={{ .Tag }} -m=brew"
4848
4949
5050checksum :
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ package cmd
55
66import (
77 "fmt"
8+ "runtime"
89
910 "github.com/google/uuid"
1011 "github.com/spf13/cobra"
@@ -36,6 +37,14 @@ var welcomeCmd = &cobra.Command{
3637 properties .Arch , _ = cmd .Flags ().GetString ("arch" )
3738 properties .Method , _ = cmd .Flags ().GetString ("method" )
3839 properties .Version , _ = cmd .Flags ().GetString ("version" )
40+ if properties .OS == "" {
41+ // get system os
42+ properties .OS = runtime .GOOS
43+ }
44+ if properties .Arch == "" {
45+ // get system arch
46+ properties .Arch = runtime .GOARCH
47+ }
3948
4049 TelemetryCaptureEvent ("CLI installed" , properties )
4150 }
You can’t perform that action at this time.
0 commit comments