Skip to content

Commit f799800

Browse files
committed
help formatt
1 parent fe29599 commit f799800

File tree

21 files changed

+82
-41
lines changed

21 files changed

+82
-41
lines changed

cmds/csv2json/csv2json.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ var (
4444
4545
%s reads CSV from stdin and writes a JSON to stdout. JSON output
4646
can be either an array of JSON blobs or one JSON blob (row as object)
47-
per line.`
47+
per line.
48+
`
4849

4950
examples = `EXAMPLES
5051
@@ -54,7 +55,8 @@ Convert data1.csv to data1.json using Unix pipes.
5455
5556
Convert data1.csv to JSON blobs, one line per blob
5657
57-
%s -as-blobs -i data1.csv`
58+
%s -as-blobs -i data1.csv
59+
`
5860

5961
// Standard Options
6062
showHelp bool

cmds/csv2mdtable/csv2mdtable.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ var (
3939
description = `SYNOPSIS
4040
4141
%s reads CSV from stdin and writes a Github Flavored Markdown
42-
table to stdout.`
42+
table to stdout.
43+
`
4344

4445
examples = `EXAMPLES
4546
@@ -49,7 +50,8 @@ Convert data1.csv to data1.md using Unix pipes.
4950
5051
Convert data1.csv to data1.md using options.
5152
52-
%s -i data1.csv -o data1.md`
53+
%s -i data1.csv -o data1.md
54+
`
5355

5456
// Standard Options
5557
showHelp bool

cmds/csv2xlsx/csv2xlsx.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ var (
4242
description = `SYNOPSIS
4343
4444
%s will take CSV input and create a new sheet in an Excel Workbook.
45-
If the Workbook does not exist then it is created.`
45+
If the Workbook does not exist then it is created.
46+
`
4647

4748
examples = `EXAMPLE
4849
@@ -54,7 +55,8 @@ called 'MyWorkbook.xlsx' with the contents of data.csv.
5455
cat data.csv | %s MyWorkbook.xlsx 'My worksheet'
5556
5657
This does the same but the contents of data.csv are piped into
57-
the workbook's sheet.`
58+
the workbook's sheet.
59+
`
5860

5961
// Standard Options
6062
showHelp bool

cmds/csvcols/csvcols.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ var (
4949
5050
%s converts a set of command line args into columns output in CSV format.
5151
It can also be used CSV input rows and rendering only the column numbers
52-
listed on the commandline (first column is 1 not 0).`
52+
listed on the commandline (first column is 1 not 0).
53+
`
5354

5455
examples = `EXAMPLES
5556
@@ -71,7 +72,8 @@ Filter a 10 column CSV file for columns 1,4,6 (left most column is one)
7172
7273
Filter a 10 columns CSV file for columns 1,4,6 from file named "10col.csv"
7374
74-
%s -i 10col.csv -col 1,4,6 > 3col.csv`
75+
%s -i 10col.csv -col 1,4,6 > 3col.csv
76+
`
7577

7678
// Standard Options
7779
showHelp bool

cmds/csvfind/csvfind.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ var (
3939
4040
%s processes a CSV file as input returning rows that contain the column
4141
with matched text. Columns are count from one instead of zero. Supports
42-
exact match as well as some Levenshtein matching.`
42+
exact match as well as some Levenshtein matching.
43+
`
4344

4445
examples = `EXAMPLES
4546
@@ -59,7 +60,8 @@ In this example we've appended the edit distance to see how close the matches ar
5960
6061
You can also search for phrases in columns.
6162
62-
%s -i books.csv -col=2 -contains "Red Book"`
63+
%s -i books.csv -col=2 -contains "Red Book"
64+
`
6365

6466
// Standard Options
6567
showHelp bool

cmds/csvjoin/csvjoin.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ var (
3939
4040
%s outputs CSV content based on two CSV files with matching column values.
4141
Each CSV input file has a designated column to match on. The values are
42-
compared as strings. Columns are counted from one rather than zero.`
42+
compared as strings. Columns are counted from one rather than zero.
43+
`
4344

4445
examples = `EXAMPLES
4546
@@ -50,7 +51,8 @@ merged-data.csv..
5051
5152
%s -csv1=data1.csv -col1=2 \
5253
-csv2=data2.csv -col2=4 \
53-
-output=merged-data.csv`
54+
-output=merged-data.csv
55+
`
5456

5557
// Standard Options
5658
showHelp bool

cmds/csvrows/csvrows.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ var (
4747
%s converts a set of command line args into rows of CSV formated output.
4848
It can also be used to filter or list specific rows of CSV input
4949
The first row is 1 not 0. Often row 1 is the header row and %s makes it
50-
easy to output only the data rows.`
50+
easy to output only the data rows.
51+
`
5152

5253
examples = `EXAMPLES
5354
@@ -69,7 +70,8 @@ Filter a 10 row CSV file for rows 1,4,6 (top most row is one)
6970
7071
Filter a 10 row CSV file for rows 1,4,6 from file named "10row.csv"
7172
72-
%s -i 10row.csv -row 1,4,6 > 3rows.csv`
73+
%s -i 10row.csv -row 1,4,6 > 3rows.csv
74+
`
7375

7476
// Standard options
7577
showHelp bool

cmds/finddir/finddir.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@ var (
4040

4141
description = `SYNOPSIS
4242
43-
%s finds directory based on matching prefix, suffix or contained text in base filename.`
43+
%s finds directory based on matching prefix, suffix or contained text in base filename.
44+
`
4445

4546
examples = `EXAMPLE
4647
4748
%s -p img
4849
49-
Find all subdirectories starting with "img".`
50+
Find all subdirectories starting with "img".
51+
`
5052

5153
// Standard Options
5254
showHelp bool

cmds/findfile/findfile.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ var (
4747
4848
%s -s .md
4949
50-
Search the current directory and subdirectories for Markdown files with extension of ".md".`
50+
Search the current directory and subdirectories for Markdown files with extension of ".md".
51+
`
5152

5253
// Standard Options
5354
showHelp bool

cmds/jsoncols/jsoncols.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ extracted is a comma. This can be overridden with an option.
3939
+ if not provided then %s reads from stdin
4040
+ OUTPUT_FILENAME is the filename to write or a dash "-" if you want to
4141
explicity write to stdout
42-
+ if not provided then %s write to stdout`
42+
+ if not provided then %s write to stdout
43+
`
4344

4445
examples = `EXAMPLES
4546
@@ -71,7 +72,8 @@ You can also pipe JSON data in.
7172
7273
Would yield
7374
74-
"Doe, Jane",[email protected],42`
75+
"Doe, Jane",[email protected],42
76+
`
7577

7678
// Basic Options
7779
showHelp bool

0 commit comments

Comments
 (0)