Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cw): Typos and generator issue #2181

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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