Update fetch.go and fetchRunner.go

This commit is contained in:
RamiBerm
2021-07-11 14:35:15 +03:00
parent de1295e29d
commit 466214c4b5
2 changed files with 3 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ type MizuFetchOptions struct {
FromTimestamp int64
ToTimestamp int64
Directory string
MizuPort uint
MizuPort uint16
}
var mizuFetchOptions = MizuFetchOptions{}
@@ -28,5 +28,5 @@ func init() {
fetchCmd.Flags().StringVarP(&mizuFetchOptions.Directory, "directory", "d", ".", "Provide a custom directory for fetched entries")
fetchCmd.Flags().Int64Var(&mizuFetchOptions.FromTimestamp, "from", 0, "Custom start timestamp for fetched entries")
fetchCmd.Flags().Int64Var(&mizuFetchOptions.ToTimestamp, "to", 0, "Custom end timestamp fetched entries")
fetchCmd.Flags().UintVarP(&mizuFetchOptions.MizuPort, "port", "p", 8899, "Custom port for mizu")
fetchCmd.Flags().Uint16VarP(&mizuFetchOptions.MizuPort, "port", "p", 8899, "Custom port for mizu")
}