Skip to content

Commandline Tools Refresh

rfecher edited this page Feb 10, 2016 · 13 revisions

We are migrating our commandline tools to JCommander and considering ways to make it more interactive and intuitive.

We will create a temp directory with cached information that can be re-used across command line runs ('.geowave directory').

config Commands that effect local configuration only

  • addstore <name> <options>

options include -t or --type , -d or --default flag to indicate to make this the default configuration, -n or --namespace, and -. where for example could be accumulo, and includes each of those individual options such as zookeeper, user, and instance. All options will be prompted with defaults provided if they are not given on the command line explicitly. -f or --force will immediately error if required options aren't given and not prompt the user to fulfill any missing options.

  • rmstore <name>

Will prompt the user with "are you sure" and then will delete all config associated with the name -f or --force will immediately error if required options aren't given and not prompt the user for yes/no.

  • addindex <name> <options>

options include -t or --type , -d or --default flag to indicate to make this the default configuration, -np or --numpartitions, and -. where for example could be accumulo, and includes each of those individual options such as zookeeper, user, and instance. All options will be prompted with defaults provided if they are not given on the command line explicitly. -f or --force will immediately error if required options aren't given and not prompt the user to fulfill any missing options.

  • rmindex <name>

Will prompt the user with "are you sure" and then will delete all config associated with the name -f or --force will immediately error if required options aren't given and not prompt the user for yes/no.

  • set
  • list

Subcommands

  • add <name> <options> Will guide through unfulfilled options in a wizard. -f can be used to assume default values. -q can be used to
  • rm <name> Will ask if you're sure. -f will automatically do it.
  • ls

Examples

Admittedly these examples are somewhat inspired by git.

geowave index add <name> will take the user through an index configuration wizard

geowave store add <name> will take the user through data store configuration

There will be other operations than 'add' such as 'list' and 'rm'

Clone this wiki locally