From 6adba380bdffd773398a220dc8066f81854e4949 Mon Sep 17 00:00:00 2001
From: Fabian Kirchner <kirchner@posteo.de>
Date: Sun, 15 Oct 2023 11:20:46 +0200
Subject: add more issues

---
 app/Main.hs | 39 +++++++++++++++++++++++++++++++++++++--
 1 file changed, 37 insertions(+), 2 deletions(-)

(limited to 'app')

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)
-- 
cgit v1.2.3