Example #1
0
func (command CreateQuota) Metadata() command_metadata.CommandMetadata {
	return command_metadata.CommandMetadata{
		Name:        "create-quota",
		Description: "Define a new resource quota",
		Usage:       "CF_NAME create-quota QUOTA [-m MEMORY] [-r ROUTES] [-s SERVICE_INSTANCES] [--allow-paid-service-plans]",
		Flags: []cli.Flag{
			flag_helpers.NewStringFlag("m", "Total amount of memory (e.g. 1024M, 1G, 10G)"),
			flag_helpers.NewIntFlag("r", "Total number of routes"),
			flag_helpers.NewIntFlag("s", "Total number of service instances"),
			cli.BoolFlag{Name: "allow-paid-service-plans", Usage: "Can provision instances of paid service plans"},
		},
	}
}
Example #2
0
File: push.go Project: nota-ja/cli
func (command *Push) Metadata() command_metadata.CommandMetadata {
	return command_metadata.CommandMetadata{
		Name:        "push",
		ShortName:   "p",
		Description: "Push a new app or sync changes to an existing app",
		Usage: "Push a single app (with or without a manifest):\n" +
			"   CF_NAME push APP [-b BUILDPACK_NAME] [-c COMMAND] [-d DOMAIN] [-f MANIFEST_PATH]\n" +
			"   [-i NUM_INSTANCES] [-k DISK] [-m MEMORY] [-n HOST] [-p PATH] [-s STACK] [-t TIMEOUT]\n" +
			"   [--no-hostname] [--no-manifest] [--no-route] [--no-start]" +
			"\n\n   Push multiple apps with a manifest:\n" +
			"   CF_NAME push [-f MANIFEST_PATH]\n",
		Flags: []cli.Flag{
			flag_helpers.NewStringFlag("b", "Custom buildpack by name (e.g. my-buildpack) or GIT URL (e.g. https://github.com/heroku/heroku-buildpack-play.git)"),
			flag_helpers.NewStringFlag("c", "Startup command, set to null to reset to default start command"),
			flag_helpers.NewStringFlag("d", "Domain (e.g. example.com)"),
			flag_helpers.NewStringFlag("f", "Path to manifest"),
			flag_helpers.NewIntFlag("i", "Number of instances"),
			flag_helpers.NewStringFlag("k", "Disk limit (e.g. 256M, 1024M, 1G)"),
			flag_helpers.NewStringFlag("m", "Memory limit (e.g. 256M, 1024M, 1G)"),
			flag_helpers.NewStringFlag("n", "Hostname (e.g. my-subdomain)"),
			flag_helpers.NewStringFlag("p", "Path of app directory or zip file"),
			flag_helpers.NewStringFlag("s", "Stack to use (a stack is a pre-built file system, including an operating system, that can run apps)"),
			flag_helpers.NewStringFlag("t", "Start timeout in seconds"),
			cli.BoolFlag{Name: "no-hostname", Usage: "Map the root domain to this app"},
			cli.BoolFlag{Name: "no-manifest", Usage: "Ignore manifest file"},
			cli.BoolFlag{Name: "no-route", Usage: "Do not map a route to this app"},
			cli.BoolFlag{Name: "no-start", Usage: "Do not start an app after pushing"},
			cli.BoolFlag{Name: "random-route", Usage: "Create a random route for this app"},
		},
	}
}
Example #3
0
File: scale.go Project: nota-ja/cli
func (command *Scale) Metadata() command_metadata.CommandMetadata {
	return command_metadata.CommandMetadata{
		Name:        "scale",
		Description: "Change or view the instance count, disk space limit, and memory limit for an app",
		Usage:       "CF_NAME scale APP [-i INSTANCES] [-k DISK] [-m MEMORY] [-f]",
		Flags: []cli.Flag{
			flag_helpers.NewIntFlag("i", "Number of instances"),
			flag_helpers.NewStringFlag("k", "Disk limit (e.g. 256M, 1024M, 1G)"),
			flag_helpers.NewStringFlag("m", "Memory limit (e.g. 256M, 1024M, 1G)"),
			cli.BoolFlag{Name: "f", Usage: "Force restart of app without prompt"},
		},
	}
}
Example #4
0
func (command *UpdateBuildpack) Metadata() command_metadata.CommandMetadata {
	return command_metadata.CommandMetadata{
		Name:        "update-buildpack",
		Description: "Update a buildpack",
		Usage:       "CF_NAME update-buildpack BUILDPACK [-p PATH] [-i POSITION] [--enable|--disable] [--lock|--unlock]",
		Flags: []cli.Flag{
			flag_helpers.NewIntFlag("i", "Buildpack position among other buildpacks"),
			flag_helpers.NewStringFlag("p", "Path to directory or zip file"),
			cli.BoolFlag{Name: "enable", Usage: "Enable the buildpack"},
			cli.BoolFlag{Name: "disable", Usage: "Disable the buildpack"},
			cli.BoolFlag{Name: "lock", Usage: "Lock the buildpack"},
			cli.BoolFlag{Name: "unlock", Usage: "Unlock the buildpack"},
		},
	}
}