Compare commits

..

No commits in common. "0cde238bc12b159f37233e1338244f40add7bbac" and "a193bf5cad7cceaee0f1f6ac26efc3a058adaa27" have entirely different histories.

2 changed files with 1 additions and 9 deletions

View File

@ -2,7 +2,7 @@ import { homedir } from "os"
import * as git from "../git.ts"
import * as vm from "../vm.ts"
import * as state from "../state.ts"
import { reset, dim, bold, green, yellow, cyan, white, red } from "../fmt.ts"
import { reset, dim, bold, green, yellow, cyan, white } from "../fmt.ts"
export async function action(opts: { json?: boolean }) {
const root = await git.repoRoot()
@ -37,9 +37,6 @@ export async function action(opts: { json?: boolean }) {
if (sessions.length === 0) {
console.log("◆ No active sessions.")
if ((await vm.status()) !== "running") {
console.log(`\n${red}VM is not running.${reset}`)
}
return
}
@ -80,8 +77,4 @@ export async function action(opts: { json?: boolean }) {
}
console.log(`\n${dim}◯ idle${reset} · ${cyan}◎ active${reset} · ${yellow}◐ unsaved${reset} · ${green}● saved${reset}`)
if ((await vm.status()) !== "running") {
console.log(`\n${red}VM is not running.${reset}`)
}
}

View File

@ -4,7 +4,6 @@ export const reset = "\x1b[0m"
export const dim = "\x1b[2m"
export const green = "\x1b[32m"
export const yellow = "\x1b[33m"
export const red = "\x1b[31m"
export const cyan = "\x1b[36m"
// ── Formatted output ────────────────────────────────────────────────