Allow specifying what to list in the "list" command #15

Closed
opened 3 years ago by jab2870 · 2 comments
Owner

Currently, I have the commands kb list and kb list-tags

I propose removing list-tags and instead allowing things like

kb list
kb list --normal
kb list --tags
kb list --assets
kb list --links

This has a few advantages:

  1. It is more future proof, allowing future "types" to be lited
  2. It allows multiple things to be listed at once, e.g. kb list --normal --assets
Currently, I have the commands `kb list` and `kb list-tags` I propose removing `list-tags` and instead allowing things like ``` kb list kb list --normal kb list --tags kb list --assets kb list --links ``` This has a few advantages: 1. It is more future proof, allowing future "types" to be lited 1. It allows multiple things to be listed at once, e.g. `kb list --normal --assets`
Poster
Owner

If no arguments are sent, I would print normal

meaning kb list == kb list --normal

If no arguments are sent, I would print normal meaning `kb list` == `kb list --normal`
Poster
Owner

This will probably be limited to the DB table items. This basically means that
tags will still be a separate command. This is because the columns are
different between the tables so listing both at once in a meaningful way will
be difficult

This will probably be limited to the DB table `items`. This basically means that tags will still be a separate command. This is because the columns are different between the tables so listing both at once in a meaningful way will be difficult
jab2870 closed this issue 3 years ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: jab2870/knowledge-base#15
Loading…
There is no content yet.