Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List available commands #26

Closed
stevage opened this issue Oct 27, 2022 · 2 comments
Closed

List available commands #26

stevage opened this issue Oct 27, 2022 · 2 comments
Assignees

Comments

@stevage
Copy link

stevage commented Oct 27, 2022

./pmtiles 
2022/10/27 14:16:01 main.go:22: Command is required.

There doesn't seem to be any way to get the available commands listed. ./pmtiles --help doesn't work.

@bdon bdon self-assigned this Oct 27, 2022
@bdon
Copy link
Member

bdon commented Oct 27, 2022

I'm going to add the Cobra library or an alternative soon to organize all the CLI help commands in a maintainable way

for now I'll just put in a big string...

@bdon bdon mentioned this issue Nov 2, 2022
bdon added a commit that referenced this issue Dec 28, 2022
bdon added a commit that referenced this issue Dec 29, 2022
* add kong cli parser to replace ad-hoc flags usage

* enables cli help text. [#26]

* Improvements to CLI help text; in most cases bucket is optional flag

* Serve works with local or remote prefixes

* rename loop to server
@bdon
Copy link
Member

bdon commented Dec 29, 2022

ported to Kong CLI library, new default output:

./pmtiles
Usage: pmtiles <command>

Flags:
  -h, --help    Show context-sensitive help.

Commands:
  convert <input> <output>
    Convert an MBTiles or older spec version to PMTiles.

  show <path>
    Inspect a local or remote archive.

  tile <path> <z> <x> <y>
    Fetch one tile from a local or remote archive and output on stdout.

  extract <input> <output>
    Create an archive from a larger archive for a subset of zoom levels or geographic region.

  verify <input>
    Verifies that a local archive is valid.

  serve <path>
    Run an HTTP proxy server for Z/X/Y tiles.

  upload --bucket=STRING <input> <key>
    Upload a local archive to remote storage.

Run "pmtiles <command> --help" for more information on a command.

@bdon bdon closed this as completed Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants