"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const commander_1 = require("commander");
const fs_1 = __importDefault(require("fs"));
const main = async () => {
    const program = new commander_1.Command()
        .arguments("[input]");
    // const addCommand = new Command('add')
    // program.addCommand(addCommand)
    program.parse(process.argv);
    if (program.args.length === 0) {
        return;
    }
    console.log(program.args);
    const [input] = program.args;
    if (input === 'add') {
        //todo add item
        // // const exampleLink = terminalLink('here', 'https://google.com')
        // console.log(`Example see ${exampleLink}`)
        // console.log(exampleLink)
        // try {
        //     const newEntry = await prepareNewEntry()
        //     newEntry.secret
        // } catch (_) { }
        return;
    }
    if (fs_1.default.existsSync(input)) {
        // handle file
        console.log('handle file');
        return;
    }
    console.log('is encoded secret');
};
main();
//# sourceMappingURL=enq.js.map