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