Skip to content

Commit

Permalink
update command description
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuang74 committed Feb 6, 2022
1 parent df45ace commit a23a2a6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/cmd/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ macro_rules! fail {
}

static USAGE: &str = "
Infer schema from CSV data and output in JSON Schema format.
Generate JSON Schema from CSV data.
This command generates reference JSON Schema (Draft 7) from CSV data,
including simple validation rules based on data statistics.
Please verify and adjust the Type, Value Constraints, and Required Fields as appropriate.
Example output file from `mydata.csv`. If piped from stdin, then filename is `stdin.csv`.
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ macro_rules! command_list {
replace Replace patterns in CSV data
reverse Reverse rows of CSV data
sample Randomly sample CSV data
schema Infer schema from CSV data
schema Generate JSON Schema from CSV data
search Search CSV data with a regex
searchset Search CSV data with a regex set
select Select, re-order, duplicate or drop columns
Expand Down
2 changes: 1 addition & 1 deletion src/mainlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ macro_rules! command_list {
replace Replace patterns in CSV data
reverse Reverse rows of CSV data
sample Randomly sample CSV data
schema Infer schema from CSV data
schema Generate JSON Schema from CSV data
search Search CSV data with a regex
searchset Search CSV data with a regex set
select Select, re-order, duplicate or drop columns
Expand Down

0 comments on commit a23a2a6

Please sign in to comment.