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

feat: allow changing default command timeout #2283

Merged
merged 6 commits into from Feb 11, 2021

Conversation

davidkna
Copy link
Member

@davidkna davidkna commented Feb 8, 2021

Description

This PR adds a new global configuration option command_timeout which allows changing the default command timeout. This is mainly achieved by moving most of the usage of utils::exec_cmd to Context. This should also allow for dynamic command mocking in the future.

Motivation and Context

Closes #2243
Related #942

Screenshots (if appropriate):

How Has This Been Tested?

  • I have tested using MacOS
  • I have tested using Linux
  • I have tested using Windows

Checklist:

  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.

Copy link
Member

@andytom andytom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

* origin/master:
  perf(username): get uid without external command (starship#2286)
  chore: update Discord link to use vanity URL
CONTRIBUTING.md Outdated Show resolved Hide resolved
Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
Copy link
Member

@Snuggle Snuggle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@davidkna davidkna merged commit eccbda8 into starship:master Feb 11, 2021
@davidkna davidkna deleted the context-exec branch February 11, 2021 20:34
@jenhausu
Copy link

Is this feature updated to the document? I can't find it.

@andytom
Copy link
Member

andytom commented Apr 12, 2021

Is this feature updated to the document? I can't find it.

Hi @jenhausu, no this hasn't been documented but we have an open issue, #2544, to add it to the docs.

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

Successfully merging this pull request may close these issues.

Option to disable or set timeout
4 participants