grim/youtrack-import
Clone
Summary
Browse
Changes
Graph
The basics of file attachments are working. Mime types are broken and there's some timing issue yet
2020-01-14, Gary Kramlich
f19a2cb91197
The basics of file attachments are working. Mime types are broken and there's some timing issue yet
package
main
import
(
"github.com/alecthomas/kong"
"hg.sr.ht/~grim/youtrack-import/bitbucket"
"hg.sr.ht/~grim/youtrack-import/globals"
)
type
cli
struct
{
globals
.
Globals
Bitbucket
bitbucket
.
Cmd
`kong:"cmd,help='Import a Bitbucket Cloud issue archive'"`
}
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
)
}