Exemplo n.º 1
0
func appsList(argv []string) error {
	usage := `
Lists applications visible to the current user.

Usage: deis apps:list
`
	if _, err := docopt.Parse(usage, argv, true, "", false, true); err != nil {
		return err
	}

	return cmd.AppsList()
}
Exemplo n.º 2
0
func appsList(argv []string) error {
	usage := `
Lists applications visible to the current user.

Usage: deis apps:list [options]

Options:
  -l --limit=<num>
    the maximum number of results to display, defaults to config setting
`
	args, err := docopt.Parse(usage, argv, true, "", false, true)

	if err != nil {
		return err
	}

	results, err := responseLimit(safeGetValue(args, "--limit"))

	if err != nil {
		return err
	}

	return cmd.AppsList(results)
}