MCPcopy Index your code
hub / github.com/AndroidPoet/playconsole-cli / GetPackageName

Function GetPackageName

internal/cli/shared.go:41–52  ·  view source on GitHub ↗

GetPackageName returns the package name from flag, env, or config

()

Source from the content-addressed store, hash-verified

39
40// GetPackageName returns the package name from flag, env, or config
41func GetPackageName() string {
42 if packageName != "" {
43 return packageName
44 }
45 if pkg := viper.GetString("package"); pkg != "" {
46 return pkg
47 }
48 if profile := config.GetProfile(); profile != nil {
49 return profile.DefaultPackage
50 }
51 return ""
52}
53
54// GetProfile returns the profile name from flag, env, or config
55func GetProfile() string {

Callers 15

runGrantFunction · 0.92
runRevokeFunction · 0.92
runUploadFunction · 0.92
runListFunction · 0.92
runFindFunction · 0.92
runWaitFunction · 0.92
runCreateFunction · 0.92
runGetFunction · 0.92
runValidateFunction · 0.92
runCommitFunction · 0.92
runDeleteFunction · 0.92
runUploadFunction · 0.92

Calls 1

GetProfileFunction · 0.92