mirror of https://github.com/docker/compose.git
Move run to own package
This commit is contained in:
parent
7046fc8ac5
commit
eee9bf449f
|
@ -1,4 +1,4 @@
|
||||||
package cmd
|
package run
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strconv"
|
"strconv"
|
|
@ -25,17 +25,18 @@
|
||||||
THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package cmd
|
package run
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/docker/api/client"
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
|
"github.com/docker/api/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func RunCommand() *cobra.Command {
|
func Command() *cobra.Command {
|
||||||
var opts runOpts
|
var opts runOpts
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "run",
|
Use: "run",
|
|
@ -44,6 +44,7 @@ import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/docker/api/cli/cmd"
|
"github.com/docker/api/cli/cmd"
|
||||||
|
"github.com/docker/api/cli/cmd/run"
|
||||||
apicontext "github.com/docker/api/context"
|
apicontext "github.com/docker/api/context"
|
||||||
"github.com/docker/api/context/store"
|
"github.com/docker/api/context/store"
|
||||||
"github.com/docker/api/util"
|
"github.com/docker/api/util"
|
||||||
|
@ -98,7 +99,7 @@ func main() {
|
||||||
&cmd.PsCommand,
|
&cmd.PsCommand,
|
||||||
cmd.ServeCommand(),
|
cmd.ServeCommand(),
|
||||||
&cmd.ExampleCommand,
|
&cmd.ExampleCommand,
|
||||||
cmd.RunCommand(),
|
run.Command(),
|
||||||
)
|
)
|
||||||
|
|
||||||
helpFunc := root.HelpFunc()
|
helpFunc := root.HelpFunc()
|
||||||
|
|
Loading…
Reference in New Issue