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