fix: add icons to ui/ fix short icons

Signed-off-by: Chapman Pendery <cpendery@vt.edu>
This commit is contained in:
Chapman Pendery
2023-10-08 00:48:18 -07:00
parent 1987da5fdb
commit b11c479f22
3 changed files with 33 additions and 33 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ enum SuggestionIcons {
File = "πŸ“„",
Folder = "πŸ“",
Subcommand = "πŸ“¦",
Option = "βš™οΈ",
Option = "πŸ”—",
Argument = "πŸ’²",
Mixin = "🏝️",
Shortcut = "πŸ”₯",
@@ -9,7 +9,7 @@ exports[`parseCommand alreadyUsedOption 1`] = `
"--bug-report",
],
"description": "Display system information for bug report",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--bug-report",
"priority": 50,
@@ -85,7 +85,7 @@ exports[`parseCommand completedOptionWithArg 1`] = `
"--artifact-server-path",
],
"description": "Defines the path where the artifact server stores uploads and retrieves downloads from. If not specified the artifact server will not start",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--artifact-server-path",
"priority": 50,
@@ -95,7 +95,7 @@ exports[`parseCommand completedOptionWithArg 1`] = `
"--artifact-server-port",
],
"description": "Defines the port where the artifact server listens (will only bind to localhost)",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--artifact-server-port",
"priority": 50,
@@ -105,7 +105,7 @@ exports[`parseCommand completedOptionWithArg 1`] = `
"--container-architecture",
],
"description": "Architecture which should be used to run containers, e.g.: linux/amd64. If not specified, will use host default architecture. Requires Docker server API Version 1.41+. Ignored on earlier Docker server platforms",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--container-architecture",
"priority": 50,
@@ -115,7 +115,7 @@ exports[`parseCommand completedOptionWithArg 1`] = `
"--container-daemon-socket",
],
"description": "Path to Docker daemon socket which will be mounted to containers",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--container-daemon-socket",
"priority": 50,
@@ -126,7 +126,7 @@ exports[`parseCommand completedOptionWithArg 1`] = `
"-C",
],
"description": "Working directory",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--directory",
"priority": 50,
@@ -137,7 +137,7 @@ exports[`parseCommand completedOptionWithArg 1`] = `
"-n",
],
"description": "Dryrun mode",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--dryrun",
"priority": 50,
@@ -147,7 +147,7 @@ exports[`parseCommand completedOptionWithArg 1`] = `
"--env-file",
],
"description": "Environment file to read and use as env in the containers",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--env-file",
"priority": 50,
@@ -157,7 +157,7 @@ exports[`parseCommand completedOptionWithArg 1`] = `
"--github-instance",
],
"description": "GitHub instance to use. Don't use this if you are not using GitHub Enterprise Server",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--github-instance",
"priority": 50,
@@ -167,7 +167,7 @@ exports[`parseCommand completedOptionWithArg 1`] = `
"--insecure-secrets",
],
"description": "NOT RECOMMENDED! Doesn't hide secrets while printing logs",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--insecure-secrets",
"priority": 50,
@@ -177,7 +177,7 @@ exports[`parseCommand completedOptionWithArg 1`] = `
"--json",
],
"description": "Output logs in json format",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--json",
"priority": 50,
@@ -187,7 +187,7 @@ exports[`parseCommand completedOptionWithArg 1`] = `
"--no-recurse",
],
"description": "Flag to disable running workflows from subdirectories of specified path in '--workflows'/'-W' flag",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--no-recurse",
"priority": 50,
@@ -197,7 +197,7 @@ exports[`parseCommand completedOptionWithArg 1`] = `
"--no-skip-checkout",
],
"description": "Do not skip actions/checkout",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--no-skip-checkout",
"priority": 50,
@@ -208,7 +208,7 @@ exports[`parseCommand completedOptionWithArg 1`] = `
"-q",
],
"description": "Disable logging of output from steps",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--quiet",
"priority": 50,
@@ -218,7 +218,7 @@ exports[`parseCommand completedOptionWithArg 1`] = `
"--secret-file",
],
"description": "File with list of secrets to read from (e.g. --secret-file .secrets)",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--secret-file",
"priority": 50,
@@ -229,7 +229,7 @@ exports[`parseCommand completedOptionWithArg 1`] = `
"-v",
],
"description": "Verbose output",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--verbose",
"priority": 50,
@@ -240,7 +240,7 @@ exports[`parseCommand completedOptionWithArg 1`] = `
"-W",
],
"description": "Path to workflow file(s)",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--workflows",
"priority": 50,
@@ -251,7 +251,7 @@ exports[`parseCommand completedOptionWithArg 1`] = `
"-h",
],
"description": "Display help",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--help",
"priority": 50,
@@ -261,7 +261,7 @@ exports[`parseCommand completedOptionWithArg 1`] = `
"--no-descriptions",
],
"description": "Disable completion descriptions",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--no-descriptions",
"priority": 50,
@@ -286,7 +286,7 @@ exports[`parseCommand exclusiveOnOption 1`] = `
"--nobreak",
],
"description": "Print a newline between matches in different files. Enabled by default",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--nobreak",
"priority": 50,
@@ -296,7 +296,7 @@ exports[`parseCommand exclusiveOnOption 1`] = `
"--nocolor",
],
"description": "Don't print color codes in results",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--nocolor",
"priority": 50,
@@ -306,7 +306,7 @@ exports[`parseCommand exclusiveOnOption 1`] = `
"--nofilename",
],
"description": "Don't print file names",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--nofilename",
"priority": 50,
@@ -316,7 +316,7 @@ exports[`parseCommand exclusiveOnOption 1`] = `
"--nofollow",
],
"description": "Don't follow symlinks",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--nofollow",
"priority": 50,
@@ -326,7 +326,7 @@ exports[`parseCommand exclusiveOnOption 1`] = `
"--nogroup",
],
"description": "Refrains from lumping matches in the same file together, and instead places the filename at the start of each match line",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--nogroup",
"priority": 50,
@@ -336,7 +336,7 @@ exports[`parseCommand exclusiveOnOption 1`] = `
"--noheading",
],
"description": "Don't print filenames above matching contents",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--noheading",
"priority": 50,
@@ -346,7 +346,7 @@ exports[`parseCommand exclusiveOnOption 1`] = `
"--nommap",
],
"description": "Don't use of memory-mapped I/O. Defaults to true on platforms where mmap() is faster than read(). (All but macOS.)",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--nommap",
"priority": 50,
@@ -356,7 +356,7 @@ exports[`parseCommand exclusiveOnOption 1`] = `
"--nomultiline",
],
"description": "Don't match regexes across newlines",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--nomultiline",
"priority": 50,
@@ -367,7 +367,7 @@ exports[`parseCommand exclusiveOnOption 1`] = `
"--norecurse",
],
"description": "Don't recurse into directories",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--norecurse",
"priority": 50,
@@ -377,7 +377,7 @@ exports[`parseCommand exclusiveOnOption 1`] = `
"--nonumbers",
],
"description": "Don't print line numbers",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "--nonumbers",
"priority": 50,
@@ -395,7 +395,7 @@ exports[`parseCommand fullyTypedSuggestion 1`] = `
"-W",
],
"description": "Display whiteouts when scanning directories. (-S) flag)",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "-W",
"priority": 50,
@@ -405,7 +405,7 @@ exports[`parseCommand fullyTypedSuggestion 1`] = `
"-w",
],
"description": "Force raw printing of non-printable characters. This is the default when output is not to a terminal",
"icon": "βš™οΈ",
"icon": "πŸ”—",
"insertValue": undefined,
"name": "-w",
"priority": 50,
+1 -1
View File
@@ -47,7 +47,7 @@ function SuggestionList({ suggestions, activeSuggestionIdx }: { suggestions: Sug
return (
<Box key={idx}>
<Text backgroundColor={bgColor} wrap="truncate-end">
{suggestion.name.padEnd(SuggestionWidth - BorderWidth, " ")}
{`${suggestion.icon} ${suggestion.name}`.padEnd(SuggestionWidth - BorderWidth, " ")}
</Text>
</Box>
);