turbaszek commented on a change in pull request #91:
URL: https://github.com/apache/kibble/pull/91#discussion_r523443214



##########
File path: kibble/__main__.py
##########
@@ -15,9 +15,83 @@
 # specific language governing permissions and limitations
 # under the License.
 
+import click
+
+from kibble.cli import setup_command
+from kibble.version import version as kv
+
+from kibble.configuration import conf
+
+
[email protected]()
+def cli():
+    """A simple command line tool for kibble"""
+
+
[email protected]("version", short_help="displays the current kibble version")
+def version():
+    click.echo(kv)
+
+
[email protected]("setup", short_help="starts the setup process for kibble")
[email protected](
+    "-u",
+    "--uri",
+    default=conf.get("elasticsearch", "conn_uri"),
+    help="Connection uri for ElasticSearch.",
+)
[email protected](
+    "-d",
+    "--dbname",
+    default=conf.get("elasticsearch", "dbname"),
+    help="Pre-defined Database prefix.",
+)
[email protected](
+    "-s",
+    "--shards",
+    default=conf.get("elasticsearch", "shards"),
+    help="Predefined number of ES shards.",
+)
[email protected](
+    "-r",
+    "--replicas",
+    default=conf.get("elasticsearch", "replicas"),
+    help="Predefined number of replicas for ES.",
+)
[email protected](
+    "-m",
+    "--mailhost",
+    default=conf.get("mail", "mailhost"),
+    help="Pre-defined mail server host.",

Review comment:
       ```suggestion
       help="mail server host",
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to