commands

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SessionsCommand = &cli.Command{

	Name:      "sessions",
	Usage:     "describe-sessions",
	ArgsUsage: "[sessions]",
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:     "stack-name",
			Required: true,
		},
		&cli.StringFlag{
			Name:     "fleet-name",
			Required: true,
		},
	},
	Action: func(ctx *cli.Context) error {
		service, err := awsclient.NewService()
		if err != nil {
			return err
		}
		return awsclient.DescribeSessions(
			service,
			ctx.String("stack-name"),
			ctx.String("fleet-name"))
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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