felangel / felangel/mason

feat: allow `mason make` to run without confirmation

Ouverte
#536 4 commentaires 0 réactions 1 personne assignée Réclamée par @felangel Voir sur GitHub
enhancement
Langage dominant
Dart
Étoiles
1.1k
Forks
113
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

**Description**

During testing, it would be much terser if `yes "\n" | mason make .."` is valid. However this throws an error:

```
StdinException: Error setting terminal echo mode, OS Error: Inappropriate ioctl for device, errno = 25
```

**Requirements**

- [ ] Fix the CLI to accept stdin in such a way to allow `yes` to work; or
- [ ] Add a new flag that performs similar functionality e.g. `--no-confirm`
- [ ] Requires `--on-conflict`?
- [ ] Requires all required options are present either in the command line or a config file

**Additional Context**

I'm still looking for workarounds, might be able to close this issue if one is found.

My [brick](https://brickhub.dev/bricks/flutter_rust_bridge/) only has optional inputs, so it would be great to have the ability to skip specifying them during testing. Passing a config file is fine but I would prefer not duplicating input from brick.yaml. It also conditionally prompts for additional input in the hooks, so having `yes` be able to skip them is an improvement.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.