Skip to content

Commit

Permalink
fix: add logo.png to files
Browse files Browse the repository at this point in the history
  • Loading branch information
brettstack committed Jan 24, 2024
1 parent 78c738e commit c6f5063
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 11 deletions.
28 changes: 20 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -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."
```

<!-- toc -->
* [Code Genie CLI](#code-genie-cli)
* [Usage](#usage)
* [Commands](#commands)

- [Code Genie CLI](#code-genie-cli)
- [Usage](#usage)
- [Commands](#commands)
<!-- tocstop -->

# Usage

<!-- usage -->

```sh-session
$ npm install -g @codegenie/cli
$ @codegenie/cli COMMAND
Expand All @@ -20,16 +26,21 @@ USAGE
$ @codegenie/cli COMMAND
...
```

<!-- usagestop -->

# 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)

- [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]`

Expand Down Expand Up @@ -185,4 +196,5 @@ EXAMPLES
```

_See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v4.1.7/dist/commands/update.ts)_

<!-- commandsstop -->
File renamed without changes
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"files": [
"/bin",
"/dist",
"/oclif.manifest.json"
"/oclif.manifest.json",
"/logo.png"
],
"main": "",
"bin": {
Expand Down Expand Up @@ -94,4 +95,4 @@
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
"version": "oclif readme && git add README.md"
}
}
}
2 changes: 1 addition & 1 deletion src/app-definition-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
}

Expand Down

0 comments on commit c6f5063

Please sign in to comment.