grim/youtrack-import
Clone
Summary
Browse
Changes
Graph
Split the version field into AffectedVersion and FixVersion while having trac and bitbucket use AffectedVersion. Also put the trac milestone into the Fix Version.
draft
2020-08-11, Gary Kramlich
faf8f5a4120f
Split the version field into AffectedVersion and FixVersion while having trac and bitbucket use AffectedVersion. Also put the trac milestone into the Fix Version.
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
)
}