UNPKG

chromancer

Version:

A powerful command-line interface for automating Chrome browser using Playwright. Perfect for web scraping, automation, testing, and browser workflows.

25 lines (24 loc) 803 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const core_1 = require("@oclif/core"); const navigate_js_1 = tslib_1.__importDefault(require("./navigate.js")); class Go extends navigate_js_1.default { static description = 'Alias for navigate - go to a URL'; static examples = [ '<%= config.bin %> <%= command.id %> https://example.com', '<%= config.bin %> <%= command.id %> example.com', ]; static args = { url: core_1.Args.string({ description: 'URL to navigate to', required: true, }), }; static flags = navigate_js_1.default.flags; async run() { // Simply run the parent navigate command await super.run(); } } exports.default = Go;