You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to automate gyro changes without direct human involvement (via a bash script), I could not find a straightforward way to determine if there are currently pending diffs via the gyro diff command.
Adding a flag to the gyro diff command to provide a non-zero exit code when a diff is detected would enable this use-case, while leaving the default behavior as-is. Helm and Helmfile's diff commands offer this functionality via the --detailed-exitcode flag.
I found a workaround via echo n | gyro up, which exits with zero when there is no diff detected, and will both decline to apply any pending diffs and provide a non-zero exit code. This is not ideal as gyro up may present multiple prompts for changes that need to declined.
The text was updated successfully, but these errors were encountered:
When attempting to automate gyro changes without direct human involvement (via a bash script), I could not find a straightforward way to determine if there are currently pending diffs via the
gyro diff
command.Adding a flag to the
gyro diff
command to provide a non-zero exit code when a diff is detected would enable this use-case, while leaving the default behavior as-is. Helm and Helmfile's diff commands offer this functionality via the--detailed-exitcode
flag.I found a workaround via
echo n | gyro up
, which exits with zero when there is no diff detected, and will both decline to apply any pending diffs and provide a non-zero exit code. This is not ideal asgyro up
may present multiple prompts for changes that need to declined.The text was updated successfully, but these errors were encountered: