feat(cli): add version diagnostics and build-aware start
This commit is contained in:
@@ -53,8 +53,8 @@ func TestRootCommandIdentity(t *testing.T) {
|
||||
{
|
||||
name: "version path",
|
||||
args: []string{"--installation", fixture.installationPath, "version"},
|
||||
wantCode: 2,
|
||||
wantText: `tht: unknown command "version"`,
|
||||
wantCode: 0,
|
||||
wantText: "tht 0.0.0-dev",
|
||||
},
|
||||
{
|
||||
name: "retired command is not an alias",
|
||||
@@ -1265,6 +1265,7 @@ case " $* " in
|
||||
exit "$THT_FAKE_MIGRATION_EXIT"
|
||||
fi
|
||||
printf '%s\n' '{"applied":[],"drifted":[],"pending":[]}' ;;
|
||||
*" ps --all --format json "*) printf '%s\n' "$THT_FAKE_PS" ;;
|
||||
*" ps --format json "*) printf '%s\n' "$THT_FAKE_PS" ;;
|
||||
*" ps -q core "*) printf '%s\n' 'core-id' ;;
|
||||
*" image inspect --format {{.Id}} "*) printf '%s\n' "${THT_FAKE_IMAGE_ID:-sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb}" ;;
|
||||
|
||||
Reference in New Issue
Block a user