@@ -6,6 +6,7 @@ import { Ripgrep } from "@/file/ripgrep"
66
77const FileSearchCommand = cmd ( {
88 command : "search <query>" ,
9+ describe : "search files by query" ,
910 builder : ( yargs ) =>
1011 yargs . positional ( "query" , {
1112 type : "string" ,
@@ -22,6 +23,7 @@ const FileSearchCommand = cmd({
2223
2324const FileReadCommand = cmd ( {
2425 command : "read <path>" ,
26+ describe : "read file contents as JSON" ,
2527 builder : ( yargs ) =>
2628 yargs . positional ( "path" , {
2729 type : "string" ,
@@ -38,6 +40,7 @@ const FileReadCommand = cmd({
3840
3941const FileStatusCommand = cmd ( {
4042 command : "status" ,
43+ describe : "show file status information" ,
4144 builder : ( yargs ) => yargs ,
4245 async handler ( ) {
4346 await bootstrap ( process . cwd ( ) , async ( ) => {
@@ -49,6 +52,7 @@ const FileStatusCommand = cmd({
4952
5053const FileListCommand = cmd ( {
5154 command : "list <path>" ,
55+ describe : "list files in a directory" ,
5256 builder : ( yargs ) =>
5357 yargs . positional ( "path" , {
5458 type : "string" ,
@@ -65,6 +69,7 @@ const FileListCommand = cmd({
6569
6670const FileTreeCommand = cmd ( {
6771 command : "tree [dir]" ,
72+ describe : "show directory tree" ,
6873 builder : ( yargs ) =>
6974 yargs . positional ( "dir" , {
7075 type : "string" ,
@@ -79,6 +84,7 @@ const FileTreeCommand = cmd({
7984
8085export const FileCommand = cmd ( {
8186 command : "file" ,
87+ describe : "file system debugging utilities" ,
8288 builder : ( yargs ) =>
8389 yargs
8490 . command ( FileReadCommand )
0 commit comments