Closed JinIgarashi closed 2 years ago
@naogify Could you just merge this PR if serve command works well with optional parameters? The aim of this PR is fixing bug raised by issue #58. Unfortunately, as you know, existing source code of serve command is not sufficient to write unit test. It may be required to change and refactor significantly in order to make test cases. It may take time to implement tests.
I have already created another issue #62 for unit test. I would like to implement unit tests for serve command together with refactoring in another PR. Does it make sense?
@naogify I noticed --provider
option is also used in build
command. Added CLI option for build and updated README.md
@JinIgarashi Thank you! Sorry for late reply. I will take a time to check it later!
@naogify fixed #58 now. I have shift both of parameters from global to specific
server
command options becauseprovider
andmapbox-access-token
options are not used in other commands rather thanserve
.I don't think both of them are required for
init
,convert
andbuild
commands.The below is new usage of
serve
command.In addition, I have added all subcommands usage on README.md.