atmb4u / dodo Goto Github PK
View Code? Open in Web Editor NEWTask Management for Hackers
Home Page: http://atmb4u.github.io/dodo
License: BSD 3-Clause "New" or "Revised" License
Task Management for Hackers
Home Page: http://atmb4u.github.io/dodo
License: BSD 3-Clause "New" or "Revised" License
optionally support taskd sync? I wrote a library (not polished yet) for it
https://github.com/jrabbit/taskd-client-py
https://github.com/atmb4u/dodo/blob/master/dodo.py#L98
file_inst.close() not needed here, since you opened it with with
statement. It already closing the file when you leave the with
statement block.
The latest version (0.99) in the repo is not the same version that is installed as through the instructions (pip install dodopie) -- it actually installs 0.98.
This isn't really a problem (if you already have a DODO file), except that from 0.98 to 0.99, the choice parameter was added in the ArgumentParser.
312: parser.add_argument("operation", type=str,
313: help="List all existing dodos add, propose, accept, reject, workon, finish, remove")
324: parser.add_argument("operation", nargs='?', default=default_operation,
325: choices=[
326: 'accept',
327: 'add',
328: 'finish',
329: 'flush',
330: 'list',
331: 'propose',
332: 'reject',
333: 'remove',
334: 'workon'
335: ],
336: help="The operation to perform")
when version 0.99 is run 'dodo init', you get the following error:
usage: dodo.py [-h] [-d DESC] [-u USER] [-t TIME] [--id ID] [-f FILE]
[-i INPUT] [-o OUTPUT]
[{accept,add,finish,flush,list,propose,reject,remove,workon}]
[quick_access]
dodo.py: error: argument operation: invalid choice: 'init' (choose from 'accept', 'add', 'finish', 'flush', 'list', 'propose', 'reject', 'remove', 'workon')
You do NOT fall through to the code below, but the ArgumentParser() throws an exception (as above) with a message on line 348.
It's easily fixed by adding 'init' to the choices for "operation".
Took me a minute to figure out what was going.
I looked but didn't see where this change was introduced, but stumbled on it when I wanted to play with the script from the repo (just copied it from the master branch).
Anyway, just wanted to let you know.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.