Implemented "beam --timestamp {n}"

This commit is contained in:
Philipp Wolfer 2023-11-13 19:11:19 +01:00
parent 4d18a207ee
commit 27685d617a
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
4 changed files with 11 additions and 2 deletions

View file

@ -47,6 +47,7 @@ func init() {
beamCmd.MarkPersistentFlagRequired("from")
beamCmd.PersistentFlags().StringP("to", "t", "", "Target backend configuration (required)")
beamCmd.MarkPersistentFlagRequired("to")
beamCmd.PersistentFlags().Int64P("timestamp", "s", 0, "Only import data newer then given Unix timestamp")
// Cobra supports local flags which will only run when this command
// is called directly, e.g.: