@foir/cli 0.67.0 → 0.67.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -12008,8 +12008,8 @@ function registerModelsCommands(program2, globalOpts) {
|
|
|
12008
12008
|
import { toJson as toJson4 } from "@bufbuild/protobuf";
|
|
12009
12009
|
function draftStateMessage(record) {
|
|
12010
12010
|
if (!record.hasUnpublishedChanges) return null;
|
|
12011
|
-
const
|
|
12012
|
-
return `This is a DRAFT: ${
|
|
12011
|
+
const state = record.publishedVersionNumber !== void 0 ? `v${record.publishedVersionNumber} is live, and the content shown is the published one` : "nothing is published yet, and the content shown is empty";
|
|
12012
|
+
return `This is a DRAFT: ${state}. Read the draft with --preview` + (record.currentVersionId ? `, or publish it with \`foir records publish ${record.currentVersionId}\`.` : ".");
|
|
12013
12013
|
}
|
|
12014
12014
|
function reportDraftState(record) {
|
|
12015
12015
|
const message = draftStateMessage(record);
|