InstructionAppLevels returns the supported install levels for an app.
(app string)
| 380 | |
| 381 | // InstructionAppLevels returns the supported install levels for an app. |
| 382 | func InstructionAppLevels(app string) []InstallLevel { |
| 383 | paths, ok := instructionApps[app] |
| 384 | if !ok { |
| 385 | return nil |
| 386 | } |
| 387 | var levels []InstallLevel |
| 388 | if paths.UserPath != "" { |
| 389 | levels = append(levels, InstallLevelUser) |
| 390 | } |
| 391 | if paths.ProjectPath != "" { |
| 392 | levels = append(levels, InstallLevelProject) |
| 393 | } |
| 394 | return levels |
| 395 | } |
| 396 | |
| 397 | // SupportedApps returns the supported app names for the kind, sorted. |
| 398 | func SupportedApps(kind Kind) []string { |
no outgoing calls