Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CommandInstance

A command instance. This is the starting point for all calls eminating from the workflow.

Hierarchy

  • CommandInstance

Index

Methods

create

  • create(query: string): Promise<void>
  • Parse a todoist task and extra information from Alfred input

    Parameters

    • query: string

    Returns Promise<void>

listSettings

  • listSettings(): void

read

  • read(query?: undefined | string): Promise<void>
  • Get a list of tasks from Todoist

    Parameters

    • Optional query: undefined | string

    Returns Promise<void>

remove

  • remove(task: Task): Promise<void>

saveSetting

  • saveSetting(setting: object): Promise<void>
  • Saves a project setting back to disk

    Parameters

    • setting: object
      • key: string
      • value: string | number | boolean

    Returns Promise<void>

submit

  • submit(task: Task): Promise<void>

updateWorkflowVersion

  • updateWorkflowVersion(): Promise<void>

verifySetting

  • verifySetting(key: string, value: string | number | boolean): void
  • Checks if a settings is valid when changing one

    Parameters

    • key: string
    • value: string | number | boolean

    Returns void

Generated using TypeDoc