Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Added pflag for stow config in storage #95

Merged
merged 3 commits into from
Aug 13, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions storage/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ type ConnectionConfig struct {
}

type StowConfig struct {
Kind string `json:"kind,omitempty" pflag:"-,Kind of Stow backend to use. Refer to github/graymeta/stow"`
Config map[string]string `json:"config,omitempty" pflag:"-,Configuration for stow backend. Refer to github/graymeta/stow"`
Kind string `json:"kind,omitempty" pflag:",Kind of Stow backend to use. Refer to github/graymeta/stow"`
Config map[string]string `json:"config,omitempty" pflag:",Configuration for stow backend. Refer to github/graymeta/stow"`
}

type CachingConfig struct {
Expand Down
13 changes: 12 additions & 1 deletion storage/config_flags.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 24 additions & 100 deletions storage/config_flags_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.