felangel / felangel/mason

feat: allow `mason make` to run without confirmation

Open
#536 4 comments 0 reactions 1 assignee Claimed by @felangel View on GitHub
enhancement
Dominant language
Dart
Stars
1.1k
Forks
113
PR merge metrics
No merged PRs in 30d

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.