func WithKid(kid string) Option {
	return func(ctx *context) error {
		ctx.kid = kid
		return nil
	}
}
WithKid adds the kid property to the context.
package jose
import (
	"github.com/smallstep/cli/ui"
	"github.com/smallstep/cli/utils"
)
type context struct {
	use, alg, kid    string
	subtle, insecure bool
	noDefaults       bool
	password         []byte
	uiOptions        []ui.Option
}
func (ctx *context) apply(opts ...Option) (*context, error) {
	for _, opt := range opts {
		if err := opt(ctx); err != nil {
			return nil, err
		}
	}
	return ctx, nil
}
type Option func(ctx *context) error
func WithUse(use string) Option {
	return func(ctx *context) error {
		ctx.use = use
		return nil
	}
}
func WithAlg(alg string) Option {
	return func(ctx *context) error {
		ctx.alg = alg
		return nil
	}
}