grim/youtrack-import
Clone
Summary
Browse
Changes
Graph
Fix the maxIssues bug where if you didn't specify a number of issues to import it didn't import any issues.
draft
2020-08-04, Gary Kramlich
156cc34dc505
Fix the maxIssues bug where if you didn't specify a number of issues to import it didn't import any issues.
package
main
import
(
"github.com/alecthomas/kong"
"keep.imfreedom.org/grim/youtrack-import/bitbucket"
"keep.imfreedom.org/grim/youtrack-import/globals"
"keep.imfreedom.org/grim/youtrack-import/trac"
)
type
cli
struct
{
globals
.
Globals
Bitbucket
bitbucket
.
Cmd
`kong:"cmd,help='Import a Bitbucket Cloud issue archive'"`
Trac
trac
.
Cmd
`kong:"cmd,help='Import a Edgewall Trac instance'"`
}
func
main
()
{
cli
:=
cli
{}
ctx
:=
kong
.
Parse
(
&
cli
,
kong
.
Name
(
"youtrack-import"
),
kong
.
Description
(
"A tool to import issues into YouTrack"
),
kong
.
UsageOnError
(),
)
err
:=
ctx
.
Run
(
&
cli
.
Globals
)
ctx
.
FatalIfErrorf
(
err
)
}