Skip to content

Commit

Permalink
feat: allow users to choose actions after canceling execution
Browse files Browse the repository at this point in the history
  • Loading branch information
luisfuturist committed Apr 16, 2024
1 parent 92eb796 commit 04b2eda
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

## [Unreleased]

### Added

- Added OS platform injection in prompts
- Added revise command

### Fixed

- Fixed `Ctrl+C` line break

### Changed

- Renamed `s run` to `s generate`
- Renamed `s r` to `s g`
- Allowed the user to choose actions after canceling command execution

## [0.2.0] - 2024-04-09

### Added
Expand Down
6 changes: 4 additions & 2 deletions src/lib/GenerativeCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ abstract class GenerativeCommand extends Command {
],
})

const cancel = () => {
this.context.stdout.write(c`{yellow Canceled.}\n`)
const cancel = async () => {
this.context.stdout.write(c`{yellow Canceled.}\n\n`)

await this.respond(query, cmd, { refreshCmd: true })
}

const run = async () => {
Expand Down

0 comments on commit 04b2eda

Please sign in to comment.