hardreset

package
v0.0.0-...-3d46182 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cli.Command{
	Name:  "hard-reset",
	Usage: "Hard reset",
	Action: func(ctx *cli.Context) error {
		conf := ctx.Context.Value("config").(*config.Config)
		db := ctx.Context.Value("db").(*sql.DB)

		if err := db.Close(); err != nil {
			return err
		}
		if err := hardReset(conf); err != nil {
			return err
		}
		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL