瀏覽代碼

Merge pull request #28224 from vieux/fix_manpages

fix manpages
Victor Vieux 8 年之前
父節點
當前提交
d286734b41

+ 1 - 1
cli/command/secret/create.go

@@ -1,7 +1,6 @@
 package secret
 package secret
 
 
 import (
 import (
-	"context"
 	"fmt"
 	"fmt"
 	"io/ioutil"
 	"io/ioutil"
 	"os"
 	"os"
@@ -12,6 +11,7 @@ import (
 	"github.com/docker/docker/opts"
 	"github.com/docker/docker/opts"
 	runconfigopts "github.com/docker/docker/runconfig/opts"
 	runconfigopts "github.com/docker/docker/runconfig/opts"
 	"github.com/spf13/cobra"
 	"github.com/spf13/cobra"
+	"golang.org/x/net/context"
 )
 )
 
 
 type createOptions struct {
 type createOptions struct {

+ 1 - 2
cli/command/secret/inspect.go

@@ -1,12 +1,11 @@
 package secret
 package secret
 
 
 import (
 import (
-	"context"
-
 	"github.com/docker/docker/cli"
 	"github.com/docker/docker/cli"
 	"github.com/docker/docker/cli/command"
 	"github.com/docker/docker/cli/command"
 	"github.com/docker/docker/cli/command/inspect"
 	"github.com/docker/docker/cli/command/inspect"
 	"github.com/spf13/cobra"
 	"github.com/spf13/cobra"
+	"golang.org/x/net/context"
 )
 )
 
 
 type inspectOptions struct {
 type inspectOptions struct {

+ 1 - 1
cli/command/secret/ls.go

@@ -1,7 +1,6 @@
 package secret
 package secret
 
 
 import (
 import (
-	"context"
 	"fmt"
 	"fmt"
 	"text/tabwriter"
 	"text/tabwriter"
 	"time"
 	"time"
@@ -11,6 +10,7 @@ import (
 	"github.com/docker/docker/cli/command"
 	"github.com/docker/docker/cli/command"
 	"github.com/docker/go-units"
 	"github.com/docker/go-units"
 	"github.com/spf13/cobra"
 	"github.com/spf13/cobra"
+	"golang.org/x/net/context"
 )
 )
 
 
 type listOptions struct {
 type listOptions struct {

+ 1 - 1
cli/command/secret/remove.go

@@ -1,12 +1,12 @@
 package secret
 package secret
 
 
 import (
 import (
-	"context"
 	"fmt"
 	"fmt"
 
 
 	"github.com/docker/docker/cli"
 	"github.com/docker/docker/cli"
 	"github.com/docker/docker/cli/command"
 	"github.com/docker/docker/cli/command"
 	"github.com/spf13/cobra"
 	"github.com/spf13/cobra"
+	"golang.org/x/net/context"
 )
 )
 
 
 type removeOptions struct {
 type removeOptions struct {

+ 1 - 2
cli/command/secret/utils.go

@@ -1,12 +1,11 @@
 package secret
 package secret
 
 
 import (
 import (
-	"context"
-
 	"github.com/docker/docker/api/types"
 	"github.com/docker/docker/api/types"
 	"github.com/docker/docker/api/types/filters"
 	"github.com/docker/docker/api/types/filters"
 	"github.com/docker/docker/api/types/swarm"
 	"github.com/docker/docker/api/types/swarm"
 	"github.com/docker/docker/client"
 	"github.com/docker/docker/client"
+	"golang.org/x/net/context"
 )
 )
 
 
 func getSecretsByName(client client.APIClient, ctx context.Context, names []string) ([]swarm.Secret, error) {
 func getSecretsByName(client client.APIClient, ctx context.Context, names []string) ([]swarm.Secret, error) {