Skip to content

Commit

Permalink
remove stdout for create snapshot, fix later
Browse files Browse the repository at this point in the history
  • Loading branch information
BrendanCoughlan5 committed Jan 3, 2025
1 parent 3e4a511 commit e72305a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmd/createSnapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ var createSnapshotCmd = &cobra.Command{
dump.SetPath(filepath.Dir(output))
dump.SetFileName(filepath.Base(output))
} else {
// Output to stdout
dump.SetPath("")
dump.SetFileName("")
l.Sugar().Fatal("Output path must be specified")
}

// Execute the dump command
Expand All @@ -102,5 +100,6 @@ func initCreateSnapshotCmd(cmd *cobra.Command) {
}

func init() {
createSnapshotCmd.Flags().StringVarP(&output, "output", "f", "", "Path to save the snapshot file to (default is stdout)")
createSnapshotCmd.Flags().StringVarP(&output, "output", "f", "", "Path to save the snapshot file to (required)")
createSnapshotCmd.MarkFlagRequired("output")
}

0 comments on commit e72305a

Please sign in to comment.