mirror of
https://github.com/docker/compose.git
synced 2026-08-31 23:03:55 +00:00
Don't cd into a directory before building
We pass the directory to build to the `go build` command
This commit is contained in:
parent
756836ffab
commit
e6597d6139
3 changed files with 10 additions and 8 deletions
|
|
@ -61,7 +61,7 @@ type createOpts struct {
|
|||
func createCommand() *cobra.Command {
|
||||
var opts createOpts
|
||||
cmd := &cobra.Command{
|
||||
Use: "create",
|
||||
Use: "create CONTEXT BACKEND [OPTIONS]",
|
||||
Short: "Create a context",
|
||||
Args: cobra.ExactArgs(2),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
|
|
@ -78,6 +78,7 @@ func listCommand() *cobra.Command {
|
|||
cmd := &cobra.Command{
|
||||
Use: "list",
|
||||
Aliases: []string{"ls"},
|
||||
Args: cobra.NoArgs,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return runList(cmd.Context())
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue