mirror of
https://github.com/restic/restic.git
synced 2025-10-19 07:33:21 +00: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 ```
14 lines
209 B
Go
14 lines
209 B
Go
//go:build !debug && !profile
|
|
// +build !debug,!profile
|
|
|
|
package global
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func RegisterProfiling(_ *cobra.Command, _ io.Writer) {
|
|
// No profiling in release mode
|
|
}
|