ACED-IDP / gen3_util

Collection of command line tools to interact with a Gen3 instance
MIT License
3 stars 1 forks source link

Initial checkin #1

Closed bwalsh closed 1 year ago

bwalsh commented 1 year ago

This PR:

$gen3_util --help

Usage: gen3_util [OPTIONS] COMMAND [ARGS]...

  Gen3 Management Utilities

Options:
  --config TEXT              Path to config file. GEN3_UTIL_CONFIG
  --format [yaml|json|text]  Result format. GEN3_UTIL_FORMAT
  --help                     Show this message and exit.

Commands:
  projects  Manage Gen3 projects.
  meta      Manage meta data.
  files     Manage file buckets.
  config    Configure this utility.
bwalsh commented 1 year ago
$ gen3_util projects

Usage: gen3_util projects [OPTIONS] COMMAND [ARGS]...

  Manage Gen3 projects.

Options:
  --help  Show this message and exit.

Commands:
  ls     List all projects.
  touch  Create a project
  rm     Remove project.
$ gen3_util meta

Usage: gen3_util meta [OPTIONS] COMMAND [ARGS]...

  Manage meta data.

Options:
  --help  Show this message and exit.

Commands:
  ls        List meta in a project.
  validate  Copy meta to/from the project bucket.
  cp        Copy meta to/from the project bucket.
  rm        Remove meta from a project.

$ gen3_util files

Usage: gen3_util files [OPTIONS] COMMAND [ARGS]...

  Manage file buckets.

Options:
  --help  Show this message and exit.

Commands:
  ls  List files in a project.
  cp  Copy files to/from the project bucket.
  rm  Remove files from a project.

$ gen3_util config

Usage: gen3_util config [OPTIONS] COMMAND [ARGS]...

  Configure this utility.

Options:
  --help  Show this message and exit.

Commands:
  ls  Show defaults.
$