google / google/fscrypt

Support inverted bool flags, e.g. `--no-all-users`

Open Beginner friendly
#452 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1k
Forks
111
Avg merge
2d 19h
Merged PRs (30d)
3

Description

When creating automated scripts (e.g. for Ansible) user prompts are not desirable.
Currently the "inverse" of `fscrypt setup --all-users` is `fscrypt setup --quiet`
However that is just a workaround, you may actually want the output (e.g. for logging setup steps) but just disable the question by specifying a value

So `--no-all-users` are `--all-users=no` would be great additions.

Contributor guide

Open the contributing guide

Research direction

Start at the CLI entry point for `fscrypt setup` and inspect how its boolean flags are defined and parsed. Add support for the requested `--no-all-users` and `--all-users=no` forms, then verify that they disable the prompt while preserving normal output.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.