mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-30 05:37:05 +02:00
allow datetime string as --timestamp parameter
This commit is contained in:
parent
c6be6c558f
commit
be1cfdac9e
4 changed files with 25 additions and 13 deletions
|
@ -17,8 +17,6 @@ Scotty. If not, see <https://www.gnu.org/licenses/>.
|
|||
package cmd
|
||||
|
||||
import (
|
||||
"math"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"go.uploadedlobster.com/scotty/internal/backends"
|
||||
"go.uploadedlobster.com/scotty/internal/cli"
|
||||
|
@ -60,5 +58,5 @@ func init() {
|
|||
// Cobra supports local flags which will only run when this command
|
||||
// is called directly, e.g.:
|
||||
// beamLovesCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
|
||||
beamLovesCmd.Flags().Int64P("timestamp", "t", math.MinInt64, "Only import loves newer then given Unix timestamp")
|
||||
beamLovesCmd.Flags().StringP("timestamp", "t", "", "only import loves newer then given timestamp")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue