merge with the update to rbf to take a Config parameter

This commit is contained in:
Jason E. Aten 2020-10-27 15:11:45 +00:00
parent 4543237e09
commit 85f3fa9836
4 changed files with 4 additions and 4 deletions

View file

@ -42,7 +42,7 @@ func NewRBFCheckCommand(stdin io.Reader, stdout, stderr io.Writer) *RBFCheckComm
// Run executes the export.
func (cmd *RBFCheckCommand) Run(ctx context.Context) error {
// Open database.
db := rbf.NewDB(cmd.Path)
db := rbf.NewDB(cmd.Path, nil)
if err := db.Open(); err != nil {
return err
}

View file

@ -47,7 +47,7 @@ func NewRBFDumpCommand(stdin io.Reader, stdout, stderr io.Writer) *RBFDumpComman
// Run executes the export.
func (cmd *RBFDumpCommand) Run(ctx context.Context) error {
// Open database.
db := rbf.NewDB(cmd.Path)
db := rbf.NewDB(cmd.Path, nil)
if err := db.Open(); err != nil {
return err
}

View file

@ -45,7 +45,7 @@ func NewRBFPageCommand(stdin io.Reader, stdout, stderr io.Writer) *RBFPageComman
// Run executes the export.
func (cmd *RBFPageCommand) Run(ctx context.Context) error {
// Open database.
db := rbf.NewDB(cmd.Path)
db := rbf.NewDB(cmd.Path, nil)
if err := db.Open(); err != nil {
return err
}

View file

@ -46,7 +46,7 @@ func NewRBFPagesCommand(stdin io.Reader, stdout, stderr io.Writer) *RBFPagesComm
// Run executes the export.
func (cmd *RBFPagesCommand) Run(ctx context.Context) error {
// Open database.
db := rbf.NewDB(cmd.Path)
db := rbf.NewDB(cmd.Path, nil)
if err := db.Open(); err != nil {
return err
}