Skip to content

Commit

Permalink
v0.0.7, cleanup, enhanced documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWillner committed Apr 21, 2021
1 parent 6572d6b commit 8e01c1e
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ clean: ## Cleanup
@find . -name __pycache__ -delete
@rm -rf htmlcov
@rm -rf build dist *.egg-info .eggs
@rm -rf $(SRC_CORE)/.mypy_cache/
@rm -rf $(SRC_CORE)/.mypy_cache .mypy_cache
@rm -f .coverage

auto-style: ## Style the code
Expand Down
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,39 @@ $ git clone https://github.com/thingsapi/things-cli && cd things-cli && make ins
% things-cli --csv --recursive all > all.csv && open all.csv

% things-cli --opml --recursive all > all.opml && open all.opml

% things-cli -h
usage: things-cli [-h] [-o] [-j] [-c] [-r] [-d DATABASE] [--version] command ...

Simple read-only Thing 3 CLI.

positional arguments:
command
inbox Shows inbox tasks
today Shows todays tasks
upcoming Shows upcoming tasks
anytime Shows anytime tasks
completed Shows completed tasks
canceled Shows canceled tasks
trash Shows trashed tasks
all Shows all tasks
areas Shows all areas
projects Shows all projects
logbook Shows tasks completed today
tags Shows all tags ordered by their usage
deadlines Shows tasks with due dates
feedback Give feedback
search Searches for a specific task

optional arguments:
-h, --help show this help message and exit
-o, --opml output as OPML
-j, --json output as JSON
-c, --csv output as CSV
-r, --recursive in-depth output
-d DATABASE, --database DATABASE
set path to database
--version, -v show program's version number and exit
```
## Screenshots
Expand Down
3 changes: 3 additions & 0 deletions pyrightconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"reportMissingImports": false,
}
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def package_files(directory):
AUTHOR_MAIL = "alex@willner.ws"
DESCRIPTON = "A simple Python 3 CLI to read your Things app data."
URL = "https://github.com/thingsapi/things-cli"
VERSION = "0.0.6"
DATA_FILES = package_files("")
OPTIONS = {
"argv_emulation": False,
Expand Down Expand Up @@ -49,7 +48,6 @@ def package_files(directory):
"Natural Language :: English",
],
python_requires=">=3.6",
version=VERSION,
data_files=DATA_FILES,
options={"py2app": OPTIONS},
setup_requires=["py2app"],
Expand Down
4 changes: 2 additions & 2 deletions things_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import sys
import webbrowser
from xml.dom import minidom
import xml.etree.ElementTree as ET
import xml.etree.ElementTree as ETree
from xml.etree.ElementTree import Element, SubElement

import argcomplete # type: ignore
Expand Down Expand Up @@ -90,7 +90,7 @@ def opml_dumps(self, tasks):

self.opml_convert(tasks, body)

return minidom.parseString(ET.tostring(top)).toprettyxml(indent=" ")
return minidom.parseString(ETree.tostring(top)).toprettyxml(indent=" ")

def opml_convert(self, tasks, top):
"""Print pretty OPML of selected tasks."""
Expand Down

0 comments on commit 8e01c1e

Please sign in to comment.