Skip to content

Commit

Permalink
add emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
henomis committed Apr 7, 2023
1 parent d3df06f commit ab13334
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ $ ai-shell-go print first 3 lines of each file in a directory
### Output

```
Here is your command line:
🤖 Here is your command line:
$ head -n 3 *
--
This command uses the `head` utility to print the first 3 lines of each file in the current directory (`*` is a wildcard that matches all files in the directory). The `-n 3` flag specifies that it should print only the first 3 lines.
$ head -n 3 *
--
This command uses the `head` utility to print the first 3 lines of each file in the current directory (`*` is a wildcard that matches all files in the directory). The `-n 3` flag specifies that it should print only the first 3 lines.
[E]xecute, [R]evise, [Q]uit? >
[E]xecute, [R]evise, [Q]uit? >
```
10 changes: 5 additions & 5 deletions shell/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ func (s *Shell) Suggest(input string) (*ShellResponse, error) {
return nil, fmt.Errorf("completion: %w", err)
}

color.New(color.FgWhite, color.Bold).Printf("\nHere is your command line:\n\n")
color.New(color.FgWhite, color.Bold).Printf("\n🤖 Here is your command line:\n\n")
color.New(color.FgCyan, color.Bold).Printf("$ %s\n", response.Command)
color.New(color.FgWhite).Printf("--\n%s\n\n", response.Explain)
color.New(color.FgWhite, color.Italic).Printf("--\n%s\n\n", response.Explain)

userAction := getUserActionFromStdin()

Expand All @@ -66,7 +66,7 @@ func (s *Shell) Retry(previousCommand string) (*ShellResponse, error) {
}
var userAction string

color.New(color.FgWhite, color.Bold).Printf("\nEnter your revision:\n\n")
color.New(color.FgWhite, color.Bold).Printf("\n🤖 Enter your revision:\n\n")
reader := bufio.NewReader(os.Stdin)
userAction, _ = reader.ReadString('\n')

Expand All @@ -75,9 +75,9 @@ func (s *Shell) Retry(previousCommand string) (*ShellResponse, error) {
return nil, fmt.Errorf("completion: %w", err)
}

color.New(color.FgWhite, color.Bold).Printf("\nHere is your command line:\n\n")
color.New(color.FgWhite, color.Bold).Printf("\n🤖 Here is your command line:\n\n")
color.New(color.FgCyan, color.Bold).Printf("$ %s\n", response.Command)
color.New(color.FgWhite).Printf("--\n%s\n\n", response.Explain)
color.New(color.FgWhite, color.Italic).Printf("--\n%s\n\n", response.Explain)

userAction = getUserActionFromStdin()

Expand Down

0 comments on commit ab13334

Please sign in to comment.