mirror of
https://github.com/vee1e/gittuf.git
synced 2026-09-04 11:47:09 +00:00
20 lines
361 B
Go
20 lines
361 B
Go
// Copyright The gittuf Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package persistent
|
|
|
|
import "github.com/spf13/cobra"
|
|
|
|
type Options struct {
|
|
SigningKey string
|
|
}
|
|
|
|
func (o *Options) AddPersistentFlags(cmd *cobra.Command) {
|
|
cmd.PersistentFlags().StringVarP(
|
|
&o.SigningKey,
|
|
"signing-key",
|
|
"k",
|
|
"",
|
|
"signing key to use to sign root of trust",
|
|
)
|
|
}
|