-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(cmd): rename unused function parameters
Signed-off-by: Universal Studio <[email protected]>
- Loading branch information
1 parent
af23149
commit 21f8e4d
Showing
9 changed files
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,15 +47,15 @@ var rootCmd = &cobra.Command{ | |
It is designed to let you enter data, encrypt it with a passphrase, | ||
and then prepare a printable document that is optimized for being able to restore the data.`, | ||
PersistentPreRun: func(cmd *cobra.Command, args []string) { | ||
PersistentPreRun: func(_ *cobra.Command, _ []string) { | ||
level := max(log.InfoLevel-log.Level(verbosity), log.DebugLevel) | ||
log.SetLevel(level) | ||
log.Debug("verbosity set to " + level.String()) | ||
}, | ||
PersistentPostRun: func(_ *cobra.Command, _ []string) { | ||
log.Info("thank you for using papercrypt!") | ||
}, | ||
RunE: func(cmd *cobra.Command, args []string) error { | ||
RunE: func(cmd *cobra.Command, _ []string) error { | ||
cmd.Println("PaperCrypt Copyright (C) 2023 TMUniversal <[email protected]>") | ||
cmd.Println("This program comes with ABSOLUTELY NO WARRANTY; for details type `papercrypt show w'.") | ||
cmd.Println("This is free software, and you are welcome to redistribute it") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters