mirror of
https://github.com/restic/restic.git
synced 2026-02-03 12:29:37 -05:00
Rough steps: ``` mv cmd/restic/global* cmd/restic/secondary_repo* internal/global/ sed -i "s/package main/package global/" internal/global/*.go Rename "GlobalOptions" to "Options" in internal/global/ Replace everywhere " GlobalOptions" -> " global.Options" Replace everywhere "\*GlobalOptions" -> " *global.Options" Make SecondaryRepoOptions public Make create public Make version public ```
12 lines
228 B
Go
12 lines
228 B
Go
//go:build !debug
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/restic/restic/internal/global"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func registerDebugCommand(_ *cobra.Command, _ *global.Options) {
|
|
// No commands to register in non-debug mode
|
|
}
|