From c6f5063e3f015b16e48207a1aaa1b8e35ebb3401 Mon Sep 17 00:00:00 2001 From: Brett Date: Thu, 25 Jan 2024 00:26:26 +1100 Subject: [PATCH] fix: add logo.png to files --- README.md | 28 ++++++++++++++++++++-------- src/logo.png => logo.png | Bin package.json | 5 +++-- src/app-definition-generator.ts | 2 +- 4 files changed, 24 insertions(+), 11 deletions(-) rename src/logo.png => logo.png (100%) diff --git a/README.md b/README.md index 2e45fa4..e953b92 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,20 @@ # Code Genie CLI +```sh +npx @codegenie/cli generate --description "An app that lets users upload photos, location, time, species and other information so that Wildlife Rescuers can get notified and respond to reports of injured wildlife in their area." +``` + -* [Code Genie CLI](#code-genie-cli) -* [Usage](#usage) -* [Commands](#commands) + +- [Code Genie CLI](#code-genie-cli) +- [Usage](#usage) +- [Commands](#commands) # Usage + ```sh-session $ npm install -g @codegenie/cli $ @codegenie/cli COMMAND @@ -20,16 +26,21 @@ USAGE $ @codegenie/cli COMMAND ... ``` + # Commands -* [`@codegenie/cli autocomplete [SHELL]`](#codegeniecli-autocomplete-shell) -* [`@codegenie/cli generate`](#codegeniecli-generate) -* [`@codegenie/cli help [COMMANDS]`](#codegeniecli-help-commands) -* [`@codegenie/cli login [FILE]`](#codegeniecli-login-file) -* [`@codegenie/cli update [CHANNEL]`](#codegeniecli-update-channel) + +- [Code Genie CLI](#code-genie-cli) +- [Usage](#usage) +- [Commands](#commands) + - [`@codegenie/cli autocomplete [SHELL]`](#codegeniecli-autocomplete-shell) + - [`@codegenie/cli generate`](#codegeniecli-generate) + - [`@codegenie/cli help [COMMANDS]`](#codegeniecli-help-commands) + - [`@codegenie/cli login [FILE]`](#codegeniecli-login-file) + - [`@codegenie/cli update [CHANNEL]`](#codegeniecli-update-channel) ## `@codegenie/cli autocomplete [SHELL]` @@ -185,4 +196,5 @@ EXAMPLES ``` _See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v4.1.7/dist/commands/update.ts)_ + diff --git a/src/logo.png b/logo.png similarity index 100% rename from src/logo.png rename to logo.png diff --git a/package.json b/package.json index 642ccdb..71e07f5 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "files": [ "/bin", "/dist", - "/oclif.manifest.json" + "/oclif.manifest.json", + "/logo.png" ], "main": "", "bin": { @@ -94,4 +95,4 @@ "test": "mocha --forbid-only \"test/**/*.test.ts\"", "version": "oclif readme && git add README.md" } -} +} \ No newline at end of file diff --git a/src/app-definition-generator.ts b/src/app-definition-generator.ts index 75f6b3b..128e188 100644 --- a/src/app-definition-generator.ts +++ b/src/app-definition-generator.ts @@ -83,7 +83,7 @@ export function convertOpenAiOutputToCodeGenieInput({ app, appName = app.name, a function copyLogo({ appName }: { appName: string }) { const codeGenieDir = getCodeGenieDir({ appName }) - const logoPath = path.resolve(__dirname, './logo.png') + const logoPath = path.resolve(__dirname, '../logo.png') fs.copyFileSync(logoPath, path.join(codeGenieDir, 'logo.png')) }