예제 #1
0
파일: domains.go 프로젝트: rsackler/deis
func domainsList(argv []string) error {
	usage := `
Lists domains bound to an application.

Usage: deis domains:list [options]

Options:
  -a --app=<app>
    the uniquely identifiable name for the application.
  -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.DomainsList(safeGetValue(args, "--app"), results)
}
예제 #2
0
파일: domains.go 프로젝트: laurrentt/deis
func domainsList(argv []string) error {
	usage := `
Lists domains bound to an application.

Usage: deis domains:list [options]

Options:
	-a --app=<app>
		the uniquely identifiable name for the application.
`

	args, err := docopt.Parse(usage, argv, true, "", false, true)

	if err != nil {
		return err
	}

	return cmd.DomainsList(safeGetValue(args, "--app"))
}