aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Main.hs39
1 files changed, 37 insertions, 2 deletions
diff --git a/app/Main.hs b/app/Main.hs
index 7030281..9a88749 100644
--- a/app/Main.hs
+++ b/app/Main.hs
@@ -215,11 +215,11 @@
-- Issue D
-- Issue E
--
--- @topic tags
+-- @topic tags (2 issues)
-- Issue A
-- Issue B @topic ids
--
--- @topic ids
+-- @topic ids (2 issues)
-- Issue B @topic tags
-- Issue C
-- ```
@@ -296,6 +296,41 @@
-- @topic options
-- @topic cache
+-- TODO Add format option (Text, JSON, ...)
+--
+-- Add an option `--format` to the list and show commands which adjust
+-- the output format:
+--
+-- text
+-- : this is the default
+--
+-- json
+-- : render all information as json so that it can be used, e.g. by
+-- other tools
+--
+-- @topic rendering
+-- @topic options
+
+-- TODO Add command for listing all topics
+--
+-- Running `anissue topics` should list all topics including the amount
+-- of issues tagged with them. By default the list should be ordered
+-- with the topics first which have the most issues.
+
+-- TODO Add HTTP server
+--
+-- When running `anissue server`, an HTTP server should be started,
+-- which serves a JSON-API as well as a HTML-frontend for the current
+-- directory.
+--
+-- The HTML frontend should display the output of `anissue list` where
+-- each item links to a separate page containing the infos of `anissue
+-- show`.
+--
+-- The JSON-Api offers endpoints `GET /<commit>/` which returns `anissue
+-- list` as `GET /<commit>/<issue-id>/` which returns `anissue show`.
+-- All command line arguments are exposed via query parameters.
+
module Main where
import Data.List (find)