Skip to content

Commit

Permalink
Bumped versioneer to v0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsoc12 committed Feb 27, 2022
1 parent 2a962c0 commit d587b61
Show file tree
Hide file tree
Showing 5 changed files with 936 additions and 347 deletions.
27 changes: 27 additions & 0 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: '3.3'

services:
firefly:
image: fireflyiii/core:latest
container_name: firefly-dev
environment:
- APP_KEY=3tPZNJV1gI90B5a5S3k58o7RV16ZlHRX
- DB_HOST=mariadb-dev
- DB_PORT=3306
- DB_CONNECTION=mysql
- DB_DATABASE=firefly
- DB_USERNAME=firefly
- DB_PASSWORD=firefly
ports:
- 8080:8080
depends_on:
- mariadb

mariadb:
image: mariadb
container_name: mariadb-dev
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_USER=firefly
- MYSQL_PASSWORD=firefly
- MYSQL_DATABASE=firefly
28 changes: 26 additions & 2 deletions firefly_cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
import sys

from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
from .cli import FireflyPrompt

__version__ = get_versions()["version"]


def _real_main():
if len(sys.argv) > 1:
FireflyPrompt().onecmd(" ".join(sys.argv[1:]))
else:
FireflyPrompt().cmdloop()


def main():
try:
_real_main()
except KeyboardInterrupt:
print("\n[ERROR] Interrupted by user")
except:
print("\n[ERROR] Fatal error occurred and firefly-cli cannot continue...")
raise


from . import _version

__version__ = _version.get_versions()["version"]
Loading

0 comments on commit d587b61

Please sign in to comment.