(dockerCli command.Cli)
| 141 | } |
| 142 | |
| 143 | func createTransformerCommand(dockerCli command.Cli) *cobra.Command { |
| 144 | var opts bridge.CreateTransformerOptions |
| 145 | cmd := &cobra.Command{ |
| 146 | Use: "create [OPTION] PATH", |
| 147 | Short: "Create a new transformation", |
| 148 | RunE: Adapt(func(ctx context.Context, args []string) error { |
| 149 | opts.Dest = args[0] |
| 150 | return bridge.CreateTransformer(ctx, dockerCli, opts) |
| 151 | }), |
| 152 | } |
| 153 | cmd.Flags().StringVarP(&opts.From, "from", "f", "", "Existing transformation to copy (default: docker/compose-bridge-kubernetes)") |
| 154 | return cmd |
| 155 | } |
no test coverage detected