diff options
author | Joris | 2020-06-06 17:44:26 +0200 |
---|---|---|
committer | Joris | 2020-06-06 19:54:03 +0200 |
commit | 1595e0de940a86a7810df0e02e43838d97c0d846 (patch) | |
tree | 9701eeec0d98baa9f6044b1911df68e4c8539819 /bin | |
parent | 6b9195000eb5404c247288b384d7ca2bacc1ab23 (diff) |
Provide nix build
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/test | 4 | ||||
-rwxr-xr-x | bin/todo | 22 |
2 files changed, 26 insertions, 0 deletions
diff --git a/bin/test b/bin/test new file mode 100755 index 0000000..cd6c0de --- /dev/null +++ b/bin/test @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -euo pipefail +cd "$(dirname $0)/.." +python -m pytest diff --git a/bin/todo b/bin/todo new file mode 100755 index 0000000..c743d0d --- /dev/null +++ b/bin/todo @@ -0,0 +1,22 @@ +#!/usr/bin/env python +import sys +from PyQt5 import QtCore, QtWidgets +import sqlite3 +import os.path + +import todo.database +import todo.db.init +import todo.gui.window +import todo.arguments +import todo.database + +args = todo.arguments.parser().parse_args() +todo.database.init(args.database if args.database != None else "database") +app = QtWidgets.QApplication(sys.argv) + +window = todo.gui.window.get() +window.show() +res = app.exec_() + +todo.database.close() +sys.exit(res) |