fix: adjust line lengths to 77 characters for better readability
Further reduce line lengths from 120 chars to 77 chars by breaking long strings and function signatures into multiple lines.
This commit is contained in:
parent
f868e94069
commit
eb7e59291d
@ -28,8 +28,9 @@ func newGenerateMnemonicCmd() *cobra.Command {
|
||||
return &cobra.Command{
|
||||
Use: "mnemonic",
|
||||
Short: "Generate a random BIP39 mnemonic phrase",
|
||||
Long: `Generate a cryptographically secure random BIP39 mnemonic phrase that can be used with ` +
|
||||
`'secret init' or 'secret import'.`,
|
||||
Long: `Generate a cryptographically secure random BIP39 ` +
|
||||
`mnemonic phrase that can be used with 'secret init' ` +
|
||||
`or 'secret import'.`,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
cli := NewCLIInstance()
|
||||
return cli.GenerateMnemonic(cmd)
|
||||
@ -94,7 +95,11 @@ func (cli *Instance) GenerateMnemonic(cmd *cobra.Command) error {
|
||||
|
||||
// GenerateSecret generates a random secret and stores it in the vault
|
||||
func (cli *Instance) GenerateSecret(
|
||||
cmd *cobra.Command, secretName string, length int, secretType string, force bool,
|
||||
cmd *cobra.Command,
|
||||
secretName string,
|
||||
length int,
|
||||
secretType string,
|
||||
force bool,
|
||||
) error {
|
||||
if length < 1 {
|
||||
return fmt.Errorf("length must be at least 1")
|
||||
|
@ -34,7 +34,8 @@ import (
|
||||
// Helper function to set up a vault with long-term key
|
||||
func setupTestVault(t *testing.T, fs afero.Fs, stateDir string) {
|
||||
// Set mnemonic for testing
|
||||
testMnemonic := "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about"
|
||||
testMnemonic := "abandon abandon abandon abandon abandon abandon " +
|
||||
"abandon abandon abandon abandon abandon about"
|
||||
t.Setenv(secret.EnvMnemonic, testMnemonic)
|
||||
|
||||
// Create vault
|
||||
|
Loading…
Reference in New Issue
Block a user