sub

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var App = &cli.Command{
	Name: "app",
	Subcommands: []*cli.Command{
		{
			Name:   "list",
			Action: runAppList,
		},
		{
			Name:   "create",
			Action: runAppCreate,
			Flags: []cli.Flag{
				&cli.StringFlag{
					Name:     "name",
					Required: true,
				},
			},
		},
	},
}
View Source
var File = &cli.Command{
	Name: "file",
	Subcommands: []*cli.Command{
		{
			Name: "list",
			Flags: []cli.Flag{
				&cli.UintFlag{
					Name: "id",
				},
			},
			Action: runFileList,
		},
		{
			Name: "history",
			Flags: []cli.Flag{
				&cli.StringFlag{
					Name: "id",
				},
				&cli.UintFlag{Name: "from"},
				&cli.UintFlag{Name: "size"},
				&cli.UintFlag{Name: "uid", Usage: "user_id"},
			},
			Action: runFileHistory,
		},
	},
}
View Source
var Init = &cli.Command{
	Name:   "init",
	Action: runInit,
}
View Source
var Resource = &cli.Command{
	Name:  "resource",
	Usage: "resource manual",
	Subcommands: []*cli.Command{
		{
			Name:   "list",
			Action: runResourceList,
			Flags: []cli.Flag{
				&cli.StringFlag{
					Name:  "uuid",
					Usage: "app uuid",
				},
			},
		},
		{
			Name:   "create",
			Action: runResourceCreate,
			Flags: []cli.Flag{
				&cli.StringFlag{
					Name:     "uuid",
					Usage:    "app uuid",
					Required: true,
				},
				&cli.StringFlag{
					Name:     "name",
					Usage:    "role name",
					Required: true,
				},
			},
		},
	},
}
View Source
var Role = &cli.Command{
	Name:        "role",
	Usage:       "",
	Description: "",
	Subcommands: []*cli.Command{
		{
			Name:   "list",
			Action: runRoleList,
		},
		{
			Name:   "create",
			Action: runRoleCreate,
			Flags: []cli.Flag{
				&cli.StringFlag{
					Name:     "uuid",
					Usage:    "app uuid",
					Required: true,
				},
				&cli.StringFlag{
					Name:     "name",
					Usage:    "role name",
					Required: true,
				},
			},
		},
	},
	Flags: []cli.Flag{},
}
View Source
var Web = &cli.Command{
	Name:        "web",
	Usage:       "",
	Description: "oa 核心http服务",
	Action:      RunWeb,
	Flags:       []cli.Flag{},
}

Functions

func InitSystem

func InitSystem() error

func RunWeb

func RunWeb(c *cli.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL