casey / casey/just

attribute to require interactive terminal

Open
#3,271 3 comments 14 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
35.8k
Forks
846
Avg merge
27m
Merged PRs (30d)
3

Description

I've made a PoC for configurations attributes: `[interactive]` and `[not-interactive]` which can enable/disable recipes based on the equivalent of `[ -t 1 ]` in bash.

I've come across a sitation where I want to run slightly different commands in either situation but switching the recipe to use bash makes it kinda ugly. This may also help in a situation where an agent is selecting a recipe to not getting stuck in a TUI, for example.

Here's the diff: https://github.com/casey/just/compare/master...robjtede:just:interactive-attribute

Not sure what you think about adding this as a configuation attribute, given the only others of those are the OS selection ones. Didn't take much time to write up so if you're opposed in general no harm done. Otherwise, I can get that diff in a better state and submit a PR.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.