Skip to content

Commit

Permalink
Merge pull request #159 from mhuang74/infer_schema
Browse files Browse the repository at this point in the history
`schema`: update command description
  • Loading branch information
jqnatividad authored Feb 6, 2022
2 parents 9bc07db + a23a2a6 commit ba6ea8f
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 ba6ea8f

Please sign in to comment.