csv2gsheets
Version:
CLI tool to convert local CSV files into Google Sheets files in a designated Google Drive folder.
25 lines (24 loc) • 743 B
TypeScript
import { Config } from '../constants';
export interface ConvertCommandOptions {
readonly browse?: boolean;
readonly configFilePath?: string;
readonly dryRun?: boolean;
}
export interface CsvFileObj {
name: string;
basename: string;
path: string;
existingSheetsFileId: string | null;
}
/**
* Convert the contents of the config object
* to a human-readable message string.
* @param config The config object
* @returns The human-readable message string
*/
export declare function config2message(config: Config): string;
/**
* The main function of the convert command.
* @param options The options passed to the convert command
*/
export default function convert(options: ConvertCommandOptions): Promise<void>;