diff options
author | Fabian Kirchner <kirchner@posteo.de> | 2023-10-15 11:20:46 +0200 |
---|---|---|
committer | Fabian Kirchner <kirchner@posteo.de> | 2023-10-15 11:20:46 +0200 |
commit | 6adba380bdffd773398a220dc8066f81854e4949 (patch) | |
tree | 2b50343f992b2971508370ae57ff570f2e5dfd45 /app | |
parent | a75cadb0671f7764059b3880fe6caafdacff1397 (diff) |
add more issues
Diffstat (limited to 'app')
-rw-r--r-- | app/Main.hs | 39 |
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) |