1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
// Copyright The gittuf Authors
// SPDX-License-Identifier: Apache-2.0
package persistent
import (
"fmt"
"github.com/gittuf/gittuf/experimental/gittuf"
"github.com/spf13/cobra"
)
type Options struct {
SigningKey string
WithRSLEntry bool
}
func (o *Options) AddPersistentFlags(cmd *cobra.Command) {
cmd.PersistentFlags().StringVarP(
&o.SigningKey,
"signing-key",
"k",
"",
fmt.Sprintf("signing key to use to sign root of trust (path to SSH key, \"%s\" for Sigstore)", gittuf.FulcioPrefix),
)
cmd.PersistentFlags().BoolVar(
&o.WithRSLEntry,
"create-rsl-entry",
false,
"create RSL entry for policy change immediately (note: the RSL will not be synced with the remote)",
)
}
|