From 7c311abb86d24b712b6dc034bce12b2d283b64ae Mon Sep 17 00:00:00 2001 From: Anas <93322743+bj-anas@users.noreply.github.com> Date: Fri, 14 Nov 2025 11:16:59 +0100 Subject: [PATCH 1/2] add tutorial on cli --- packages/theme/lib/cli/commands/theme/init.ts | 7 +++++++ packages/theme/lib/types.ts | 1 + 2 files changed, 8 insertions(+) diff --git a/packages/theme/lib/cli/commands/theme/init.ts b/packages/theme/lib/cli/commands/theme/init.ts index 90f463c..278f51c 100644 --- a/packages/theme/lib/cli/commands/theme/init.ts +++ b/packages/theme/lib/cli/commands/theme/init.ts @@ -4,6 +4,7 @@ import { ThemeCommand } from '@/util/theme-command'; import { Args, Flags } from '@oclif/core'; import { Cli, Env, Filesystem, Form, Git, Http, Path, Session, Tasks } from '@youcan/cli-kit'; +console.log(`${Env.apiHostname()}/themes/init`); class Init extends ThemeCommand { static description = 'Clones a theme template git repo'; @@ -142,6 +143,12 @@ async function prompt(command: ThemeCommand) { message: 'A documentation URL for this theme.', initial: 'https://developer.youcan.shop', }, + { + type: 'text', + name: 'theme_tutorial_url', + message: 'A video tutorial URL for this theme.', + initial: 'https://www.youtube.com/@Youcandotshop', + }, ]); } diff --git a/packages/theme/lib/types.ts b/packages/theme/lib/types.ts index e995b6a..3d2592e 100644 --- a/packages/theme/lib/types.ts +++ b/packages/theme/lib/types.ts @@ -15,6 +15,7 @@ export interface Metadata { theme_version: string; theme_support_url: string; theme_documentation_url: string; + theme_tutorial_url: string; config: FileDescriptor[]; layouts: FileDescriptor[]; sections: FileDescriptor[]; From cf9ce6c847ad670e75ae26c41347d302f4500b85 Mon Sep 17 00:00:00 2001 From: Anas <93322743+bj-anas@users.noreply.github.com> Date: Fri, 14 Nov 2025 11:18:22 +0100 Subject: [PATCH 2/2] remove test code --- packages/theme/lib/cli/commands/theme/init.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/theme/lib/cli/commands/theme/init.ts b/packages/theme/lib/cli/commands/theme/init.ts index 278f51c..773b01e 100644 --- a/packages/theme/lib/cli/commands/theme/init.ts +++ b/packages/theme/lib/cli/commands/theme/init.ts @@ -4,7 +4,6 @@ import { ThemeCommand } from '@/util/theme-command'; import { Args, Flags } from '@oclif/core'; import { Cli, Env, Filesystem, Form, Git, Http, Path, Session, Tasks } from '@youcan/cli-kit'; -console.log(`${Env.apiHostname()}/themes/init`); class Init extends ThemeCommand { static description = 'Clones a theme template git repo';