Skip to content

Commit

Permalink
fix(cw): Typos and generator issue (#2181)
Browse files Browse the repository at this point in the history
  • Loading branch information
grant0417 authored Nov 20, 2023
1 parent 80d2d3f commit 5a33b78
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/cw.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const themesGenerator: Fig.Generator = {
script: ["fig", "theme", "--list"],
script: ["cw", "theme", "--list"],
postProcess: (output) => {
const builtinThemes: Fig.Suggestion[] = [
{
Expand All @@ -21,9 +21,9 @@ export const themesGenerator: Fig.Generator = {
return output
.split("\n")
.map(
(theme) =>
(name) =>
({
name: theme.replace(".json", ""),
name,
icon: "🎨",
}) as Fig.Suggestion
)
Expand Down Expand Up @@ -992,11 +992,11 @@ const completion: Fig.Spec = {
},
{
name: "tips",
description: "Enable/disable fig tips",
description: "Enable/disable CodeWhisperer tips",
subcommands: [
{
name: "enable",
description: "Enable fig tips",
description: "Enable CodeWhisperer tips",
options: [
{
name: ["-h", "--help"],
Expand All @@ -1006,7 +1006,7 @@ const completion: Fig.Spec = {
},
{
name: "disable",
description: "Disable fig tips",
description: "Disable CodeWhisperer tips",
options: [
{
name: ["-h", "--help"],
Expand Down Expand Up @@ -1043,11 +1043,11 @@ const completion: Fig.Spec = {
subcommands: [
{
name: "enable",
description: "Enable fig tips",
description: "Enable CodeWhisperer tips",
},
{
name: "disable",
description: "Disable fig tips",
description: "Disable CodeWhisperer tips",
},
{
name: "reset",
Expand Down Expand Up @@ -1076,7 +1076,7 @@ const completion: Fig.Spec = {
},
{
name: "install",
description: "Install fig cli components",
description: "Install CodeWhisperer cli components",
options: [
{
name: "--daemon",
Expand All @@ -1096,7 +1096,7 @@ const completion: Fig.Spec = {
},
{
name: "--force",
description: "Force installation of fig",
description: "Force installation of CodeWhisperer",
},
{
name: "--ssh",
Expand All @@ -1110,7 +1110,7 @@ const completion: Fig.Spec = {
},
{
name: "uninstall",
description: "Uninstall fig",
description: "Uninstall CodeWhisperer",
hidden: true,
options: [
{
Expand Down Expand Up @@ -1328,7 +1328,7 @@ const completion: Fig.Spec = {
},
{
name: "user",
description: "Manage your fig user",
description: "Manage your CodeWhisperer user",
subcommands: [
{
name: "login",
Expand Down Expand Up @@ -1474,7 +1474,7 @@ const completion: Fig.Spec = {
{
name: "pre-cmd",
description:
"Command that is run during the PreCmd section of the fig integrations",
"Command that is run during the PreCmd section of the CodeWhisperer integrations",
options: [
{
name: "--alias",
Expand Down

0 comments on commit 5a33b78

Please sign in to comment.