LCOV - code coverage report
Current view: top level - dashql-app/src/shell_app/commands - share.ts Coverage Total Hit
Test: DashQL 915828b Lines: 100.0 % 11 11
Test Date: 2026-11-06 19:30:32

            Line data    Source code
       1              : import type { DashQLShellCommand } from '../../shell/api.js';
       2              : 
       3              : export interface ShareCommandDependencies {
       4              :     requestDialog(signal?: AbortSignal): Promise<void>;
       5              : }
       6              : 
       7            1 : export function createShareCommand(dependencies: ShareCommandDependencies): DashQLShellCommand {
       8            1 :     return [
       9            1 :         'share',
      10            1 :         'Share a SQL script as a URL',
      11            1 :         async (args, context) => {
      12            1 :             if (args.length !== 0) throw new Error('usage: .share');
      13            1 :             if (context.signal?.aborted) return;
      14            1 :             await dependencies.requestDialog(context.signal);
      15            1 :         },
      16            1 :     ];
      17            1 : }
        

Generated by: LCOV version 2.0-1