You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by be...@apache.org on 2017/07/18 17:01:38 UTC
[incubator-openwhisk] branch master updated: Remove Unsupported
Shared Flag from Package List (Review) (#2495)
This is an automated email from the ASF dual-hosted git repository.
berstler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git
The following commit(s) were added to refs/heads/master by this push:
new 1f414a5 Remove Unsupported Shared Flag from Package List (Review) (#2495)
1f414a5 is described below
commit 1f414a5df3f4df18aabffec84bc3fb0528337642
Author: James Dubee <jw...@us.ibm.com>
AuthorDate: Tue Jul 18 13:01:36 2017 -0400
Remove Unsupported Shared Flag from Package List (Review) (#2495)
---
tools/cli/go-whisk-cli/commands/package.go | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/tools/cli/go-whisk-cli/commands/package.go b/tools/cli/go-whisk-cli/commands/package.go
index b3c8045..1066a67 100644
--- a/tools/cli/go-whisk-cli/commands/package.go
+++ b/tools/cli/go-whisk-cli/commands/package.go
@@ -378,7 +378,6 @@ var packageListCmd = &cobra.Command{
PreRunE: setupClientConfig,
RunE: func(cmd *cobra.Command, args []string) error {
var err error
- var shared bool
var qualifiedName QualifiedName
if whiskErr := checkArgs(args, 0, 1, "Package list",
@@ -398,16 +397,9 @@ var packageListCmd = &cobra.Command{
client.Namespace = qualifiedName.namespace
}
- if flags.common.shared == "yes" {
- shared = true
- } else {
- shared = false
- }
-
options := &whisk.PackageListOptions{
Skip: flags.common.skip,
Limit: flags.common.limit,
- Public: shared,
}
packages, _, err := client.Packages.List(options)
@@ -420,6 +412,7 @@ var packageListCmd = &cobra.Command{
}
printList(packages)
+
return nil
},
}
@@ -528,7 +521,6 @@ func init() {
packageBindCmd.Flags().StringSliceVarP(&flags.common.param, "param", "p", []string{}, wski18n.T("parameter values in `KEY VALUE` format"))
packageBindCmd.Flags().StringVarP(&flags.common.paramFile, "param-file", "P", "", wski18n.T("`FILE` containing parameter values in JSON format"))
- packageListCmd.Flags().StringVar(&flags.common.shared, "shared", "", wski18n.T("include publicly shared entities in the result"))
packageListCmd.Flags().IntVarP(&flags.common.skip, "skip", "s", 0, wski18n.T("exclude the first `SKIP` number of packages from the result"))
packageListCmd.Flags().IntVarP(&flags.common.limit, "limit", "l", 30, wski18n.T("only return `LIMIT` number of packages from the collection"))
--
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].