Skip to content

Commit

Permalink
feat: added banner ascii art
Browse files Browse the repository at this point in the history
  • Loading branch information
wilfreud committed Apr 11, 2024
1 parent fe1afd4 commit 76efe00
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 22 deletions.
21 changes: 5 additions & 16 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import { Command } from "commander";
import { RepoManager } from "./lib/repository-manager";
import { Configuration as RepositoryManagerConfiguration } from "@/types/repository-manager";
import { envParser, jsonParser } from "./lib/parsers";
import { BANNER } from "./lib/ui/banner";

console.log(BANNER);

// Declare the program
const program = new Command("quirgo");
Expand Down Expand Up @@ -103,22 +106,8 @@ program.parse();

// Treatment here
const options = program.opts();
// if (program.args.length === 0) {
// program.help();
// }

console.log("end of program");
// console.log(config);
console.table(options);

config.repositoryName = options.repo || "";
config.repositoryOwner = options.owner || "";
config.verbose = true;
repoManager = new RepoManager(options.token);
parsedKeyValues = envParser(options.env);
for (const key in parsedKeyValues) {
// console.log(key, program.getOptionValue(key));
repoManager?.createRepoVariable(config, key, parsedKeyValues[key] || "");
if (program.args.length === 0) {
program.help();
}

/**
Expand Down
15 changes: 9 additions & 6 deletions src/lib/ui/banner.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
export const BANNER = `
________ .__
\_____ \ __ __|__|______ ____ ____
/ / \ \| | \ \_ __ \/ ___\ / _ \
/ \_/. \ | / || | \/ /_/ > <_> )
\_____\ \_/____/|__||__| \___ / \____/
\__> /_____/
█████ █ ██ ██▓ ██▀███ ▄████ ▒█████
▒██▓ ██▒ ██ ▓██▒▓██▒▓██ ▒ ██▒ ██▒ ▀█▒▒██▒ ██▒
▒██▒ ██░▓██ ▒██░▒██▒▓██ ░▄█ ▒▒██░▄▄▄░▒██░ ██▒
░██ █▀ ░▓▓█ ░██░░██░▒██▀▀█▄ ░▓█ ██▓▒██ ██░
░▒███▒█▄ ▒▒█████▓ ░██░░██▓ ▒██▒░▒▓███▀▒░ ████▓▒░
░░ ▒▒░ ▒ ░▒▓▒ ▒ ▒ ░▓ ░ ▒▓ ░▒▓░ ░▒ ▒ ░ ▒░▒░▒░
░ ▒░ ░ ░░▒░ ░ ░ ▒ ░ ░▒ ░ ▒░ ░ ░ ░ ▒ ▒░
░ ░ ░░░ ░ ░ ▒ ░ ░░ ░ ░ ░ ░ ░ ░ ░ ▒
░ ░ ░ ░ ░ ░ ░
`;

0 comments on commit 76efe00

Please sign in to comment.