mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-23 21:17:56 +02:00
Implemented "beam --timestamp {n}"
This commit is contained in:
parent
4d18a207ee
commit
27685d617a
4 changed files with 11 additions and 2 deletions
|
@ -36,3 +36,11 @@ func getConfigFromFlag(cmd *cobra.Command, flagName string) (string, *viper.Vipe
|
|||
}
|
||||
return configName, config
|
||||
}
|
||||
|
||||
func getInt64FromFlag(cmd *cobra.Command, flagName string) (result int64) {
|
||||
result, err := cmd.Flags().GetInt64(flagName)
|
||||
if err != nil {
|
||||
result = 0
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue