mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-07 07:55:13 +02:00
feat(cli): surface docs and demo-warehouse links in ktx setup
Add a Clack note pointing to https://docs.kaelio.com/ktx right after the setup intro, and a second note pointing to https://kaelio.com/start above the database driver multiselect — mirroring the docs-site CTA wording. Closes KLO-715 and KLO-716.
This commit is contained in:
parent
1071f9d1c9
commit
59599f03da
2 changed files with 7 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ import { isDemoConnection } from './telemetry/demo-detect.js';
|
|||
import { emitTelemetryEvent } from './telemetry/index.js';
|
||||
import {
|
||||
createKtxSetupPromptAdapter,
|
||||
createKtxSetupUiAdapter,
|
||||
type KtxSetupPromptOption,
|
||||
} from './setup-prompts.js';
|
||||
|
||||
|
|
@ -1780,6 +1781,11 @@ async function chooseDrivers(
|
|||
return 'missing-input';
|
||||
}
|
||||
const initialValues = unique(options?.initialDrivers ?? []);
|
||||
createKtxSetupUiAdapter().note(
|
||||
'Get demo credentials at https://kaelio.com/start',
|
||||
'🎁 Need a warehouse to play with?',
|
||||
io,
|
||||
);
|
||||
const choices = await prompts.multiselect({
|
||||
message: withMultiselectNavigation('Which databases should KTX connect to?'),
|
||||
options: [...DRIVER_OPTIONS],
|
||||
|
|
|
|||
|
|
@ -586,6 +586,7 @@ export async function runKtxSetup(args: KtxSetupArgs, io: KtxCliIo, deps: KtxSet
|
|||
async function runKtxSetupInner(args: KtxSetupArgs, io: KtxCliIo, deps: KtxSetupDeps = {}): Promise<number> {
|
||||
const setupUi = deps.setupUi ?? createKtxSetupUiAdapter();
|
||||
setupUi.intro('KTX setup', io);
|
||||
setupUi.note('https://docs.kaelio.com/ktx', '📚 Docs', io);
|
||||
let entryAction: KtxSetupEntryAction | undefined;
|
||||
let projectResult: Awaited<ReturnType<typeof runKtxSetupProjectStep>>;
|
||||
let agentNextActions: string | undefined;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue