mason icon indicating copy to clipboard operation
mason copied to clipboard

feat: allow `mason make` to run without confirmation

Open Desdaemon opened this issue 3 years ago • 4 comments

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 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.

Desdaemon avatar Oct 06 '22 18:10 Desdaemon

Hi @Desdaemon 👋 Thanks for opening an issue!

Can you please provide more context? You can specify a config file if you want the command to be more terse:

mason make hello -c config.json

Where config.json contains the values for all vars:

{
  "name": "Mason"
}

Let me know if that helps and if not can you please provide more context regarding what you're trying to achieve? Thanks!

felangel avatar Oct 06 '22 18:10 felangel

Edit: Added context to the initial comment.

Desdaemon avatar Oct 06 '22 19:10 Desdaemon