mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 18:02:41 +02:00
Add a new argos version
command outputing the version.
This commit is contained in:
parent
1dc91a246a
commit
1d35ea22ea
3 changed files with 9 additions and 1 deletions
|
@ -0,0 +1 @@
|
||||||
|
VERSION = "0.1.0"
|
|
@ -9,6 +9,7 @@ from alembic import command
|
||||||
from alembic.config import Config
|
from alembic.config import Config
|
||||||
|
|
||||||
from argos import logging
|
from argos import logging
|
||||||
|
from argos import VERSION
|
||||||
from argos.agent import ArgosAgent
|
from argos.agent import ArgosAgent
|
||||||
|
|
||||||
|
|
||||||
|
@ -40,6 +41,11 @@ def server():
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@cli.command()
|
||||||
|
def version():
|
||||||
|
click.echo(VERSION)
|
||||||
|
|
||||||
|
|
||||||
@cli.command()
|
@cli.command()
|
||||||
@click.argument("server_url", envvar="ARGOS_AGENT_SERVER_URL")
|
@click.argument("server_url", envvar="ARGOS_AGENT_SERVER_URL")
|
||||||
@click.argument("auth", envvar="ARGOS_AGENT_TOKEN")
|
@click.argument("auth", envvar="ARGOS_AGENT_TOKEN")
|
||||||
|
|
|
@ -26,8 +26,9 @@ Options:
|
||||||
--help Show this message and exit.
|
--help Show this message and exit.
|
||||||
|
|
||||||
Commands:
|
Commands:
|
||||||
agent Get and run tasks to the provided server.
|
agent Get and run tasks to the provided server.
|
||||||
server
|
server
|
||||||
|
version
|
||||||
```
|
```
|
||||||
|
|
||||||
<!--[[[end]]]
|
<!--[[[end]]]
|
||||||
|
|
Loading…
Reference in a new issue