mirror of
https://github.com/restic/restic.git
synced 2025-12-13 18:32:23 +00:00
extract GlobalOptions into internal/global package
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 ```
This commit is contained in:
14
internal/global/global_release.go
Normal file
14
internal/global/global_release.go
Normal file
@@ -0,0 +1,14 @@
|
||||
//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
|
||||
}
|
||||
Reference in New Issue
Block a user