There was a validation that said `--json` is supported only when
`--airgap` is also passed for SUBNET related `mc support` commands.
Remove this validation to allow `--json` to be passed even in online
mode. In this scenario, print a status JSON after upload to SUBNET.
If passed,
- validate and save it immediately in the subnet config
- extract API key from it and use it for online registration with SUBNET
(if `--airgap` is not passed)
- in case online registration with SUBNET fails for any reason, fallback
to airgap mode (show URL to be visited on SUBNET)
- terminal messaging for 'mc rm --dry-run' was completely
wrong, it was using `fmt.Println` which shouldn't be done.
- mc support perf - printing was using a mix of color.New()
and console.Infoln() (use one)
- mc support profile - printing was using a mix of color.New()
and console.Info() (use one)
- mc support inspect - printing was using a mix of color.New()
and consoleInfo() (use one)
many commands seem to have sort of had
stopped following the expected convention
in `mc` to differentiate *probe.Error.
To keep things readable this PR is the
first attempt at such a cleanup.
this is essentially the same code at
https://github.com/minio/minio/tree/master/docs/debugging/xl-meta
--export option provides exporting 'xl.meta' information as 'JSON'
or export the inlined-data 'JSON' that represents 'version-id' and
the corresponding size of the inlined data.
This essentially now provides full visibility of the inspected data
that is captured, extracts and converts into some parseable
JSON.