Skip to content

Commit

Permalink
Refactor theme command usage in commands.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
m4tt72 committed Dec 31, 2023
1 parent fb7c4f0 commit a8a8bc3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/utils/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ export const commands: Record<string, (args: string[]) => Promise<string> | stri
return `Permission denied: unable to run the command '${args[0]}' as root.`;
},
theme: (args: string[]) => {
const usage = `Usage: theme [theme]. Example: theme [...args]
const usage = `Usage: theme [args].
[args]:
ls: list all available themes
set: set theme to [args]
set: set theme to [theme]
[Examples]:
theme ls
theme set gruvboxdark
`;
if (args.length === 0) {
return usage;
Expand Down

0 comments on commit a8a8bc3

Please sign in to comment.