piknik

Unnamed repository; edit this file 'description' to name the repository.
Info | Log | Files | Refs | README | LICENSE

commit 138b49f7f39716f4c64e26ced6cb9bb053b0a97f
parent 9d2cb0e5d2f533e6432eb9da3b8a4ff7e6df15e4
Author: lash <dev@holbrook.no>
Date:   Wed, 19 Apr 2023 10:42:49 +0100

Add pending state handler

Diffstat:
D.piknik/.tags/UNTAGGED/0f68c301-74db-49b2-a227-49aab144c9e3 | 0
D.piknik/BACKLOG/0f68c301-74db-49b2-a227-49aab144c9e3 | 2--
MCHANGELOG | 2++
MROADMAP | 7++++---
Mpiknik/basket.py | 4++++
Mpiknik/runnable/cmd.py | 3+++
Msetup.cfg | 2+-
7 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/.piknik/.tags/UNTAGGED/0f68c301-74db-49b2-a227-49aab144c9e3 b/.piknik/.tags/UNTAGGED/0f68c301-74db-49b2-a227-49aab144c9e3 diff --git a/.piknik/BACKLOG/0f68c301-74db-49b2-a227-49aab144c9e3 b/.piknik/BACKLOG/0f68c301-74db-49b2-a227-49aab144c9e3 @@ -1 +0,0 @@ -{"id": "0f68c301-74db-49b2-a227-49aab144c9e3", "title": "Help breaks citing missing subcommand for top level command", "assigned": {}, "dependencies": [], "owner": null} -\ No newline at end of file diff --git a/CHANGELOG b/CHANGELOG @@ -1,3 +1,5 @@ +- 0.3.2 + * Add handler for setting pending state - 0.3.1 * Fix fail when generating html to outfile with show cli - 0.3.0 diff --git a/ROADMAP b/ROADMAP @@ -1,8 +1,9 @@ -- 0.5.0 +- 0.6 * Verify and enforce cryptographic key of identity for assignments -- 0.4.0 +- 0.5 + * HTTP server for making state edits for issues locally (e.g. drag). +- 0.4 * HTTP server for making state edits for issues locally (e.g. drag). -- 0.3.0 * Automatially embed VCS target and source hash to issue and issue messages. - target: current hash target to merge into (var) - source: current hash source to merge (var) diff --git a/piknik/basket.py b/piknik/basket.py @@ -69,6 +69,10 @@ class Basket: return self.state.list(category) + def state_pending(self, issue_id): + self.state.move(issue_id, self.state.PENDING) + + def state_doing(self, issue_id): self.state.move(issue_id, self.state.DOING) diff --git a/piknik/runnable/cmd.py b/piknik/runnable/cmd.py @@ -24,6 +24,7 @@ argp = argparse.ArgumentParser() argp.add_argument('-d', type=str, help='Data directory') argp.add_argument('-f', '--files', dest='f', action='store_true', help='Save attachments to filesystem') argp.add_argument('-o', '--files-dir', dest='files_dir', type=str, help='Directory to output saved files to') +argp.add_argument('-v', action='store_true', help='Turn on debug logs') argp.add_argument('-i','--issue-id', type=str, help='Issue id to show') argp.add_argument('cmd', type=str, help='subcommand to execute') strargs = copy.copy(sys.argv[1:]) @@ -52,6 +53,8 @@ else: argp = m.subparser(argp) arg = argp.parse_args(sys.argv[1:]) +if arg.v: + logg.setLevel(logging.DEBUG) m.ctx = Context(arg, m.assembler) diff --git a/setup.cfg b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = piknik -version = 0.3.1 +version = 0.3.2 description = CLI issue tracker author = Louis Holbrook author_email = dev@holbrook.no