Method
parseArgument
(args []string, name string)
Source from the content-addressed store, hash-verified
| 767 | } |
| 768 | |
| 769 | func (b CommandBuilder) parseArgument(args []string, name string) string { |
| 770 | for i, arg := range args { |
| 771 | if strings.TrimSpace(arg) == "--"+name { |
| 772 | if len(args) > i+1 { |
| 773 | return strings.TrimSpace(args[i+1]) |
| 774 | } |
| 775 | } |
| 776 | } |
| 777 | return "" |
| 778 | } |
| 779 | |
| 780 | func (b CommandBuilder) serviceVersionFromProfile(profile string) string { |
| 781 | config := b.ConfigProvider.Config(profile) |
Tested by
no test coverage detected