Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add examples for flags in README #520

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

futtetennista
Copy link

I couldn't find any documentation of flags and I ended up looking at the code. It wasn't clear to me from the current docs:

  1. what was the top-level object name
  2. wether individual flags had to be specified as objects or a list
  • Did you add a new feature to hpack? No
  • Did you add an acceptance test for that new feature to test/EndToEndSpec.hs? Not applicable

I couldn't find any documentation of flags and I ended up looking at the code. It wasn't clear to me from the current docs:

1. what was the top-level object name
2. wether individual flags had to be specified as objects or a list
@ad-si
Copy link

ad-si commented May 3, 2024

@sol Can we please merge this? I was exactly looking for such an example snippet in the readme just now.

Copy link
Collaborator

@mpilgrem mpilgrem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If an example would be helpful to remove that perceived ambiguity, would it not be better to add it to line 151, so that line is something like (given the limitations of tables in Markdown):

| `flags`  | `flag <name>` | | Map from flag name to flag (see [Flags](#flags)) | `flags: { my-cabal-flag: { description: 'Optional description', manual: true, default: false } }` | |

```
flags:
development:
description: A development or production build
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI is complaining about trailing white space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants