mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-22 16:24:00 +01:00
22 lines
445 B
Go
22 lines
445 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/ddworken/hishtory/client/hctx"
|
|
"github.com/ddworken/hishtory/client/lib"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var reuploadCmd = &cobra.Command{
|
|
Use: "reupload",
|
|
Hidden: true,
|
|
Short: "[Debug Only] Reupload your entire hiSHtory to all other devices",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
lib.CheckFatalError(lib.Reupload(hctx.MakeContext()))
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(reuploadCmd)
|
|
}
|