Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

polycubectl: fix help for services #92

Merged
merged 1 commit into from
Mar 28, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/polycubectl/harcodedhelp.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ func printServicesAddHelp() {
var output = [][]string{}
output = append(output, []string{"Params:", "", ""})
output = append(output, []string{"name=value", "string", "Name of the service"})
output = append(output, []string{"servicecontroller=value", "string", "Name of the library (e.g. libpcn-bridge.so)"})
output = append(output, []string{"uri=value", "string", "Path of the service (e.g. libpcn-bridge.so)"})
output = append(output, []string{"type=value", "string", "Service type. lib or grpc"})

config := columnize.DefaultConfig()
config.NoTrim = true
Expand All @@ -111,7 +112,7 @@ func printServicesAddHelp() {
Buffer += fmt.Sprintln(result)
Buffer += fmt.Sprintf("\n")
Buffer += fmt.Sprintf("Example:\n")
Buffer += fmt.Sprintf(" services add name=bridge servicecontroller=libpcn-bridge.so\n\n")
Buffer += fmt.Sprintf(" services add name=bridge uri=libpcn-bridge.so type=lib\n\n")
}

func printServicesDelHelp() {
Expand Down