mdeuser commented on a change in pull request #2424: (Review) Leading Slash
(CLI issue #2328)
URL:
https://github.com/apache/incubator-openwhisk/pull/2424#discussion_r126023919
##########
File path: tools/cli/go-whisk-cli/commands/util.go
##########
@@ -61,6 +61,17 @@ func (qualifiedName QualifiedName) String() string {
return strings.Join(output, "")
}
+// replaceMissingLeadSlash(name) returns a (possibly fully qualified) resource
name,
+// inserting a leading '/' if it is of 3 parts
(namespace/packageName/actionName)
+// and lacking the leading '/'.
+func replaceMissingLeadSlash(name string) string {
Review comment:
Would it be more clear if this were a method on the `QualifedName` struct?
Perhaps rename it as well to a name that implies it only really works on a
fully qualified entity name
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services