Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not ignore the directory if the user cannot interact with the prompt #3560

Closed
hverlin opened this issue Dec 14, 2024 · 0 comments · Fixed by #3558
Closed

Do not ignore the directory if the user cannot interact with the prompt #3560

hverlin opened this issue Dec 14, 2024 · 0 comments · Fixed by #3558
Labels

Comments

@hverlin
Copy link
Contributor

hverlin commented Dec 14, 2024

> const { exec } = require('node:child_process');
> const { promisify } = require('node:util');
> const execAsync = promisify(exec);
> await execAsync('mise tasks --json')
{
  stdout: '[]\n',
  stderr: 'mise WARN  Config files in /private/tmp/mise-cccc/mise.toml are not trusted.\n' +
    'Trust them with `mise trust`.\n'
}
> await execAsync('mise tasks --json')
{ stdout: '[]\n', stderr: '' }

In this case, the directory is added to the ignored directory. I would expect it to behave the same as using ctrl+c and exit with error 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant