Skip to content

Commit 05cc62e

Browse files
committed
revert quarto version announce
1 parent 16b84f2 commit 05cc62e

File tree

3 files changed

+1
-33
lines changed

3 files changed

+1
-33
lines changed

src/command/preview/cmd.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ import {
3939
import { isHtmlOutput } from "../../config/format.ts";
4040
import { renderProject } from "../render/project.ts";
4141
import { renderServices } from "../render/render-shared.ts";
42-
import { resourcePath } from "../../core/resources.ts";
43-
import { info } from "log/mod.ts";
44-
4542
export const previewCommand = new Command()
4643
.name("preview")
4744
.stopEarly()
@@ -122,15 +119,6 @@ export const previewCommand = new Command()
122119
)
123120
// deno-lint-ignore no-explicit-any
124121
.action(async (options: any, file?: string, args?: string[]) => {
125-
if (!options.flags?.quiet) {
126-
try {
127-
const version = Deno.readTextFileSync(resourcePath("version"));
128-
info(`This is quarto version ${version}.`);
129-
} catch (_e) {
130-
info(`This is quarto version 99.9.9.`);
131-
}
132-
}
133-
134122
// one-time initialization of yaml validation modules
135123
setInitializer(initYamlIntelligenceResourcesFromFilesystem);
136124
await initState();

src/command/render/cmd.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { fixupPandocArgs, kStdOut, parseRenderFlags } from "./flags.ts";
1515
import { renderResultFinalOutput } from "./render.ts";
1616
import { render, renderServices } from "./render-shared.ts";
1717
import { RenderResult } from "./types.ts";
18-
import { resourcePath } from "../../core/resources.ts";
1918

2019
export const renderCommand = new Command()
2120
.name("render")
@@ -119,15 +118,6 @@ export const renderCommand = new Command()
119118
)
120119
// deno-lint-ignore no-explicit-any
121120
.action(async (options: any, input?: string, args?: string[]) => {
122-
if (!options.flags?.quiet && options.flags?.output !== kStdOut) {
123-
try {
124-
const version = Deno.readTextFileSync(resourcePath("version"));
125-
info(`This is quarto version ${version}.`);
126-
} catch (_e) {
127-
info(`This is quarto version 99.9.9.`);
128-
}
129-
}
130-
131121
args = args || [];
132122

133123
// remove implicit clean argument (re-injected based on what the user

src/command/serve/cmd.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
import { Command } from "cliffy/command/mod.ts";
99

1010
import * as colors from "fmt/colors.ts";
11-
import { error, info } from "log/mod.ts";
12-
import { resourcePath } from "../../core/resources.ts";
11+
import { error } from "log/mod.ts";
1312
import { initYamlIntelligenceResourcesFromFilesystem } from "../../core/schema/utils.ts";
1413
import { projectContext } from "../../project/project-context.ts";
1514

@@ -44,15 +43,6 @@ export const serveCommand = new Command()
4443
)
4544
// deno-lint-ignore no-explicit-any
4645
.action(async (options: any, input?: string) => {
47-
if (!options.flags?.quiet) {
48-
try {
49-
const version = Deno.readTextFileSync(resourcePath("version"));
50-
info(`This is quarto version ${version}.`);
51-
} catch (_e) {
52-
info(`This is quarto version 99.9.9.`);
53-
}
54-
}
55-
5646
await initYamlIntelligenceResourcesFromFilesystem();
5747
if (!input) {
5848
error(

0 commit comments

Comments
 (0)