(name string)
| 918 | distro := stringFromAny(request["distro"]) |
| 919 | if command != "" && distro != "" { |
| 920 | return distro + ": " + command |
| 921 | } |
| 922 | if command != "" { |
| 923 | return command |
| 924 | } |
| 925 | return distro |
| 926 | } |
| 927 | |
| 928 | func mapStringAny(value any) (map[string]any, bool) { |
| 929 | if value == nil { |
| 930 | return nil, false |
| 931 | } |
| 932 | switch item := value.(type) { |
| 933 | case map[string]any: |
| 934 | return item, true |
| 935 | case map[string]string: |