func (m *MigrateKeysSubcommand) GetFlagSet() *flag.FlagSet {
	return m.flagSet
}
GetFlagSet returns flag set of this subcommand.
package keys
import (
	"errors"
	"flag"
	"fmt"
	"os"
	"github.com/cossacklabs/acra/cmd"
	keystoreV1 "github.com/cossacklabs/acra/keystore"
	filesystemV1 "github.com/cossacklabs/acra/keystore/filesystem"
	keystoreV2 "github.com/cossacklabs/acra/keystore/v2/keystore"
	keystoreAPIV2 "github.com/cossacklabs/acra/keystore/v2/keystore/api"
	filesystemV2 "github.com/cossacklabs/acra/keystore/v2/keystore/filesystem"
	log "github.com/sirupsen/logrus"
)
type MigrateKeysParams interface {
	SrcKeyStoreVersion() string
	SrcKeyStoreParams() KeyStoreParameters
	DstKeyStoreVersion() string
	DstKeyStoreParams() KeyStoreParameters
	DryRun() bool
	ForceWrite() bool
}
type MigrateKeysSubcommand struct {
	flagSet    *flag.FlagSet
	src, dst   CommonKeyStoreParameters
	srcVersion string
	dstVersion string
	dryRun     bool
	force      bool
}
const (
	SrcMasterKeyVarName = "SRC_" + keystoreV1.AcraMasterKeyVarName
	DstMasterKeyVarName = "DST_" + keystoreV1.AcraMasterKeyVarName
)
var (
	ErrMissingFormat = errors.New("keystore format not specified")
	ErrMissingKeyDir = errors.New("keys directory not specified")
)
func (m *MigrateKeysSubcommand) SrcKeyStoreVersion() string {
	return m.srcVersion
}
func (m *MigrateKeysSubcommand) SrcKeyStoreParams() KeyStoreParameters {
	return &m.src
}
func (m *MigrateKeysSubcommand) DstKeyStoreVersion() string {
	return m.dstVersion
}
func (m *MigrateKeysSubcommand) DstKeyStoreParams() KeyStoreParameters {
	return &m.dst
}
func (m *MigrateKeysSubcommand) DryRun() bool {
	return m.dryRun
}
func (m *MigrateKeysSubcommand) ForceWrite() bool {
	return m.force
}
func (m *MigrateKeysSubcommand) Name() string {
	return CmdMigrateKeys
}