Skip to content

Conversation

carlosms
Copy link
Contributor

Update to make use of choice in log options, src-d/go-cli#9.

Before:

Usage:
  gitbase-web [OPTIONS] serve [serve-OPTIONS]

starts serving the application

Help Options:
  -h, --help                  Show this help message

[serve command options]
          --host=             IP address to bind the HTTP server (default: 0.0.0.0) [$GITBASEPG_HOST]
          --port=             Port to bind the HTTP server (default: 8080) [$GITBASEPG_PORT]
          --server=           URL used to access the application in the form 'HOSTNAME[:PORT]'. Leave it unset to allow connections from
                              any proxy or public address [$GITBASEPG_SERVER_URL]
          --db=               gitbase connection string. Use the DSN (Data Source Name) format described in the Go MySQL Driver docs:
                              https://github.com/go-sql-driver/mysql#dsn-data-source-name (default:
                              root@tcp(localhost:3306)/none?maxAllowedPacket=4194304) [$GITBASEPG_DB_CONNECTION]
          --select-limit=     Default 'LIMIT' forced on all the SQL queries done from the UI. Set it to 0 to remove any limit (default:
                              100) [$GITBASEPG_SELECT_LIMIT]
          --bblfsh=           Address where bblfsh server is listening (default: 127.0.0.1:9432) [$GITBASEPG_BBLFSH_SERVER_URL]
          --footer=           Allows to add any custom html to the page footer. It must be a string encoded in base64. Use it, for
                              example, to add your analytics tracking code snippet [$GITBASEPG_FOOTER_HTML]

    Log Options:
          --log-level=        Logging level (info, debug, warning or error) (default: info) [$LOG_LEVEL]
          --log-format=       log format (text or json), defaults to text on a terminal and json otherwise [$LOG_FORMAT]
          --log-fields=       default fields for the logger, specified in json [$LOG_FIELDS]
          --log-force-format  ignore if it is running on a terminal or not [$LOG_FORCE_FORMAT]

After

Usage:
  gitbase-web [OPTIONS] serve [serve-OPTIONS]

starts serving the application

Help Options:
  -h, --help                                     Show this help message

[serve command options]
          --host=                                IP address to bind the HTTP server (default: 0.0.0.0) [$GITBASEPG_HOST]
          --port=                                Port to bind the HTTP server (default: 8080) [$GITBASEPG_PORT]
          --server=                              URL used to access the application in the form 'HOSTNAME[:PORT]'. Leave it unset to
                                                 allow connections from any proxy or public address [$GITBASEPG_SERVER_URL]
          --db=                                  gitbase connection string. Use the DSN (Data Source Name) format described in the Go
                                                 MySQL Driver docs: https://github.com/go-sql-driver/mysql#dsn-data-source-name (default:
                                                 root@tcp(localhost:3306)/none?maxAllowedPacket=4194304) [$GITBASEPG_DB_CONNECTION]
          --select-limit=                        Default 'LIMIT' forced on all the SQL queries done from the UI. Set it to 0 to remove
                                                 any limit (default: 100) [$GITBASEPG_SELECT_LIMIT]
          --bblfsh=                              Address where bblfsh server is listening (default: 127.0.0.1:9432)
                                                 [$GITBASEPG_BBLFSH_SERVER_URL]
          --footer=                              Allows to add any custom html to the page footer. It must be a string encoded in base64.
                                                 Use it, for example, to add your analytics tracking code snippet [$GITBASEPG_FOOTER_HTML]

    Log Options:
          --log-level=[info|debug|warning|error] Logging level (default: info) [$LOG_LEVEL]
          --log-format=[text|json]               log format, defaults to text on a terminal and json otherwise [$LOG_FORMAT]
          --log-fields=                          default fields for the logger, specified in json [$LOG_FIELDS]
          --log-force-format                     ignore if it is running on a terminal or not [$LOG_FORCE_FORMAT]

Signed-off-by: Carlos Martín <carlos.martin.sanchez@gmail.com>
@carlosms carlosms merged commit 225e679 into src-d:master Oct 23, 2018
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

Successfully merging this pull request may close these issues.

2 participants