Skip to content

Conversation

@brayan-trejo
Copy link
Contributor

What type of Pull Request is this? (check all applicable)

  • Refactor
  • [X ] Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Describe your changes in brief

  • Executes **cloudfuse mount <test-mnt-point> --config-file <config-file> --dry-run --passphrase <passphrase>** at end of tui configuration to ensure the generated configuration config.yaml.aes file functions correctly.

Checklist

  • [X ] Tested locally
  • Added new dependencies
  • Updated documentation
  • Added tests

Related Issues

  • Related Issue #
  • Closes #

Copy link
Contributor

@jfantinhardesty jfantinhardesty left a comment

Choose a reason for hiding this comment

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

Looks great!

Comment on lines +1243 to +1249
var outBuf, errBuf bytes.Buffer
cmd.Stdout = &outBuf
cmd.Stderr = &errBuf
err := cmd.Run()
if err != nil {
return fmt.Errorf("Dry run failed: %v\n%s", err, errBuf.String())
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you want to capture stdout too?
Maybe you could simplify this and use CombinedOutput instead of Run().

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.

3 participants