main

mattermost/focalboard

Last updated at: 29/12/2023 09:39

importJira.ts

TLDR

The import/jira/importJira.ts file is a script that imports data from Jira into an archive file. It uses the minimist library to parse command-line arguments and the jiraImporter module to perform the actual import.

Methods

There are no methods in this file.

Classes

There are no classes in this file.

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.

import minimist from 'minimist'
import {run} from './jiraImporter'

async function main() {
    const args: minimist.ParsedArgs = minimist(process.argv.slice(2))

    const inputFile = args['i']
    const outputFile = args['o'] || 'archive.boardarchive'

    return run(inputFile, outputFile)
}

main()