Cherrypicker.CLI (cherrypicker v0.1.0)

Copy Markdown View Source

The cherrypicker command:

cherrypicker start [--port N]     # run the proxy (foreground)
cherrypicker route NAME PORT      # name → 127.0.0.1:PORT
cherrypicker unroute NAME
cherrypicker ls
cherrypicker version

Every verb takes --json for a machine-readable envelope. Exit codes: 0 success, 1 the command ran and failed, 2 usage error.

Summary

Functions

The dispatcher, separated from main/1 so tests avoid the halt.

Functions

main(argv)

@spec main([String.t()]) :: no_return()

run(argv)

@spec run([String.t()]) :: 0 | 1 | 2

The dispatcher, separated from main/1 so tests avoid the halt.