Skip to content

Commit

Permalink
move information from index.md to design.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tertsdiepraam committed Dec 19, 2023
1 parent 04131a4 commit 3214c73
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 24 deletions.
16 changes: 16 additions & 0 deletions docs/design/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

This module contains some documents about the design of this library. In particular, it details the different kinds of arguments that are present in the coreutils and the difficulties that `clap` presents when implementing these arguments.

The primary design considerations of this library are:

- Must support all options in GNU coreutils.
- Must support a many-to-many relationship between options and settings.
- Must have a convenient derive API.
- Must support help strings from file.
- Code must be "greppable" (e.g. search file for `--all` to find the code for
that argument).
- Maintainability is more important than terseness.
- With a bit of luck, it will be smaller and faster than `clap`, because we have
fewer features to support.
- Use outside uutils is possible but not prioritized. Hence, configurability
beyond the coreutils is not necessary.
- Errors must be at least as good as GNU's, but may be different (hopefully
improved).

## Chapters

1. [Arguments in the coreutils](design::coreutils)
Expand Down
24 changes: 0 additions & 24 deletions docs/index.md

This file was deleted.

0 comments on commit 3214c73

Please sign in to comment.