Hwaro::Services::ConversionResult
Inherits JSON::Serializable < Struct < Value < Object
Result of a conversion operation
Constructors
new(pull : JSON::PullParser)
Sourcenew(success : Bool = true, message : String = "", converted_count : Int32 = 0, skipped_count : Int32 = 0, error_count : Int32 = 0, dry_run : Bool = false, content_error_count : Int32 = 0)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
content_error_count
The part of error_count caused by unparseable front matter (a run
that failed only on those is a content error, not an IO one). Not
part of the --json payload.
content_error_count=(content_error_count : Int32)
The part of error_count caused by unparseable front matter (a run
that failed only on those is a content error, not an IO one). Not
part of the --json payload.
converted_count
Sourcedry_run
True when the run only previewed: converted_count then means
"would be converted" and no file was touched.
dry_run=(dry_run : Bool)
True when the run only previewed: converted_count then means
"would be converted" and no file was touched.
error_count
Sourcemessage
Sourceskipped_count
Sourcesuccess
Source