Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/feomasto/priv/deps.ts>args.commands.Command

Sync posts from Mastodon into FeoBlog
Go to Latest
interface args.commands.Command
import { type args } from "https://deno.land/x/feomasto@v0.1.0/priv/deps.ts";
const { Command } = args.commands;

Interface of a command parser

Type Parameters

Return extends CommandReturn<any, any, any>

Type of parsing result

ErrList extends readonly ParseError[]

Possible types of list of errors

Methods

extract(args: readonly ArgvItem[]): Return | ParseFailure<ErrList>

Convert a list of classified arguments to parsing result

describe(): Iterable<string>

Describe the command in --help

help(cmdPath: readonly string[]): Iterable<CommandHelp>

All components to construct help message so far