MCPcopy Index your code
hub / github.com/avamsi/climate

github.com/avamsi/climate @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
106 symbols 264 edges 21 files 20 documented · 19%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Climate

Climate "CLI Mate" aims to make creating CLIs in Go easy (and fun!), similar to python-fire.
It's also built on top of Cobra and so comes with "batteries included" (help, shell completion etc.).

Usage

https://github.com/avamsi/climate/blob/3aef84cce318eaf6af6c2684002196e635faf4a5/cmd/examples/greet/main.go#L11-L54

$ greet --help

Greet someone.

Usage:
  greet [opts]

Flags:
  -g, --greeting string (default Hello)  greeting to use
  -n, --name     string (default World)  name to greet
  -t, --times    int                     number of times to greet
  -h, --help                             help for greet
  -v, --version                          version for greet

Subcommands

https://github.com/avamsi/climate/blob/3aef84cce318eaf6af6c2684002196e635faf4a5/cmd/examples/jj/main.go#L14-L87

$ jj --help

Jujutsu (an experimental VCS).

Usage:
  jj [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  git         Commands for working with the underlying Git repo
  help        Help about any command
  init        Create a new repo in the given directory
  squash      Move changes from a revision into its parent
  util        Infrequently used commands such as for generating shell completions
  version     Display jj's version information

Flags:
  -R, --repository          path  path to the repo to operate on
      --ignore-working-copy       don't snapshot / update the working copy
  -h, --help                      help for jj
  -v, --version                   version for jj

Use "jj [command] --help" for more information about a command.
$ jj git --help

Commands for working with the underlying Git repo.

Usage:
  jj git [command]

Available Commands:
  export      Update the underlying Git repo with changes made in the repo
  remote      Manage Git remotes

Flags:
  -h, --help  help for git

Global Flags:
      --ignore-working-copy       don't snapshot / update the working copy
  -R, --repository          path  path to the repo to operate on

Use "jj git [command] --help" for more information about a command.

Extension points exported contracts — how you extend this code

Plan (Interface)
(no doc) [2 implementers]
internal/run.go
TestCLI (FuncType)
(no doc)
testing/clitest/clitest.go

Core symbols most depended-on inside this repo

t
called by 19
reflect.go
sliceParser
called by 13
strconv.go
declareOption
called by 9
options.go
Child
called by 9
internal/metadata.go
v
called by 7
reflect.go
WithMetadata
called by 5
climate.go
Func
called by 3
climate.go
RunAndExit
called by 3
climate.go

Shape

Function 43
Method 35
Struct 23
FuncType 3
Interface 1
TypeAlias 1

Languages

Go100%

Modules by API surface

internal/metadata.go15 symbols
command.go14 symbols
options.go11 symbols
cmd/examples/jj/main.go8 symbols
strconv.go7 symbols
error.go7 symbols
cmd/cligen/main.go7 symbols
reflect.go6 symbols
climate.go6 symbols
plan.go5 symbols
testing/clitest/clitest.go3 symbols
internal/run.go3 symbols

For agents

$ claude mcp add climate \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact