mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-17 16:38:54 +00:00
Add long-over --md flag (#2100)
This commit is contained in:
parent
f178f9ee3d
commit
809d312bd4
8 changed files with 100 additions and 15 deletions
|
|
@ -609,6 +609,20 @@ var MarkdownOnlyFlagSection = FlagSection{
|
|||
*pargi += 1
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
name: "--md-aligned",
|
||||
altNames: []string{"--markdown-aligned"},
|
||||
help: "Use markdown-tabular format for input and output data, with " +
|
||||
"left-justified and padded columns. Implies --md, so you do not " +
|
||||
"need to also pass --md.",
|
||||
parser: func(args []string, argc int, pargi *int, options *TOptions) {
|
||||
options.ReaderOptions.InputFileFormat = "markdown"
|
||||
options.WriterOptions.OutputFileFormat = "markdown"
|
||||
options.WriterOptions.MarkdownAlignedOutput = true
|
||||
*pargi += 1
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
@ -1058,6 +1072,17 @@ var FileFormatFlagSection = FlagSection{
|
|||
},
|
||||
},
|
||||
|
||||
{
|
||||
name: "--md",
|
||||
altNames: []string{"--markdown"},
|
||||
help: "Use markdown-tabular format for input and output data.",
|
||||
parser: func(args []string, argc int, pargi *int, options *TOptions) {
|
||||
options.ReaderOptions.InputFileFormat = "markdown"
|
||||
options.WriterOptions.OutputFileFormat = "markdown"
|
||||
*pargi += 1
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
name: "--odkvp",
|
||||
help: "Use DKVP format for output data.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue