From a23a2a68648db58f83d7e97b605d5f2d4f6a96b1 Mon Sep 17 00:00:00 2001 From: "Michael S. Huang" Date: Sun, 6 Feb 2022 21:48:38 +0800 Subject: [PATCH] update command description --- src/cmd/schema.rs | 6 +++++- src/main.rs | 2 +- src/mainlite.rs | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/cmd/schema.rs b/src/cmd/schema.rs index ffe545b5a..979d76613 100644 --- a/src/cmd/schema.rs +++ b/src/cmd/schema.rs @@ -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`. diff --git a/src/main.rs b/src/main.rs index 376a99738..81f79dc0f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 diff --git a/src/mainlite.rs b/src/mainlite.rs index a7f51a3a7..57917de1f 100644 --- a/src/mainlite.rs +++ b/src/mainlite.rs @@ -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