diff2html-cli
Advanced tools
Comparing version 5.2.3 to 5.2.4
@@ -119,2 +119,6 @@ "use strict"; | ||
{ | ||
searchValue: '//diff2html-fileContentToggle', | ||
replaceValue: config.fileContentToggle ? "diff2htmlUi.fileContentToggle();" : '', | ||
}, | ||
{ | ||
searchValue: '//diff2html-synchronisedScroll', | ||
@@ -121,0 +125,0 @@ replaceValue: config.synchronisedScroll ? "diff2htmlUi.synchronisedScroll();" : '', |
@@ -38,2 +38,3 @@ "use strict"; | ||
showFilesOpen: argv.summary === 'open' || false, | ||
fileContentToggle: argv.fileContentToggle, | ||
synchronisedScroll: argv.synchronisedScroll, | ||
@@ -40,0 +41,0 @@ highlightCode: argv.highlightCode, |
@@ -10,2 +10,3 @@ export declare type StyleType = 'line' | 'side'; | ||
export declare type Configuration = { | ||
fileContentToggle: boolean; | ||
synchronisedScroll: boolean; | ||
@@ -12,0 +13,0 @@ showFilesOpen: boolean; |
import { StyleType, SummaryType, LineMatchingType, FormatType, InputType, OutputType, DiffyType, DiffStyleType } from './types'; | ||
export declare type Argv = { | ||
style: StyleType; | ||
fileContentToggle: boolean; | ||
synchronisedScroll: boolean; | ||
@@ -5,0 +6,0 @@ highlightCode: boolean; |
@@ -21,2 +21,3 @@ "use strict"; | ||
style: 'line', | ||
fileContentToggle: true, | ||
synchronisedScroll: true, | ||
@@ -63,2 +64,8 @@ highlightCode: true, | ||
}) | ||
.option('fileContentToggle', { | ||
alias: 'fct', | ||
describe: 'Show viewed checkbox to toggle file content', | ||
type: 'boolean', | ||
default: defaults.fileContentToggle, | ||
}) | ||
.option('synchronisedScroll', { | ||
@@ -65,0 +72,0 @@ alias: 'sc', |
{ | ||
"name": "diff2html-cli", | ||
"version": "5.2.3", | ||
"version": "5.2.4", | ||
"homepage": "https://diff2html.xyz/index.html#cli", | ||
@@ -5,0 +5,0 @@ "description": "Fast Diff to colorized HTML", |
@@ -76,2 +76,3 @@ # diff2html-cli | ||
| -s | --style | Output style | `line`, `side` | `line` | | ||
| --fct | --fileContentToggle | Adds a viewed checkbox to toggle file content | `true`, `false` | `true` | | ||
| --sc | --synchronisedScroll | Synchronised horizontal scroll | `true`, `false` | `true` | | ||
@@ -78,0 +79,0 @@ | --hc | --highlightCode | Highlight code | `true`, `false` | `true` | |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70291
814
192