/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/4import { IPCClient } from './ipc/ipcClient';56function fatal(err: any): void {7console.error(err);8process.exit(1);9}1011function main(argv: string[]): void {12const ipcClient = new IPCClient('git-editor');13const commitMessagePath = argv[argv.length - 1];1415ipcClient.call({ commitMessagePath }).then(() => {16setTimeout(() => process.exit(0), 0);17}).catch(err => fatal(err));18}1920main(process.argv);212223