From 2458e6a15ce8da25334d4199989592848d0d9797 Mon Sep 17 00:00:00 2001 From: Siddhartha Basu Date: Wed, 9 Dec 2020 10:51:08 -0600 Subject: [PATCH] feat: add command line arguments for polling --- internal/cmd/migrate.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/internal/cmd/migrate.go b/internal/cmd/migrate.go index 4f435be..c3dda38 100644 --- a/internal/cmd/migrate.go +++ b/internal/cmd/migrate.go @@ -22,6 +22,16 @@ func MigrateRepositories() cli.Command { Usage: "owner name where the repositories will be migrated", Required: true, }, + cli.Int64Flag{ + Name: "poll-for", + Usage: "threshold for polling forked repository(in seconds)", + Value: 60, + }, + cli.Int64Flag{ + Name: "poll-interval", + Usage: "polling interval for forked repository(in seconds)", + Value: 2, + }, }, } }