func newExchangeCommand(options *options.DaemonOptions) cli.Command {
	return cli.Command{
		Name:  "exchange",
		Usage: "exchange kubernetes deployment to local",
		Flags: []cli.Flag{
			cli.StringFlag{
				Name:        "expose",
				Usage:       "expose port",
				Destination: &options.ExchangeOptions.Expose,
			},
		},
		Action: func(c *cli.Context) error {
			if options.Debug {
				zerolog.SetGlobalLevel(zerolog.DebugLevel)
			}

			action := Action{}
			return action.Exchange(c.Args().First(), options)
		},
	}
}
// newExchangeCommand return new exchange command
newExchangeCommand return new exchange command
// newExchangeCommand return new exchange command
func newExchangeCommand(options *options.DaemonOptions) cli.Command {
	return cli.Command{
		Name:  "exchange",
		Usage: "exchange kubernetes deployment to local",
		Flags: []cli.Flag{
			cli.StringFlag{
				Name:        "expose",
				Usage:       "expose port",
				Destination: &options.ExchangeOptions.Expose,
			},
		},
		Action: func(c *cli.Context) error {
			if options.Debug {
				zerolog.SetGlobalLevel(zerolog.DebugLevel)
			}
			action := Action{}
			return action.Exchange(c.Args().First(), options)
		},
	}
}
func newExchangeCommand ( options * options . DaemonOptions ) cli . Command { return cli . Command { Name : " " , Usage : " " , Flags : [ ] cli . Flag { cli . StringFlag { Name : " " , Usage : " " , Destination : & options . ExchangeOptions . Expose , } , } , Action : func ( c * cli . Context ) error { if options . Debug { zerolog . SetGlobalLevel ( zerolog . DebugLevel ) } action := Action { } return action . Exchange ( c . Args ( ) . First ( ) , options ) } , } }
newExchangeCommand return new exchange command
newExchangeCommand return new exchange command