module

Enable

Constants

CONFIG_DIR = (Path.home / ".config") / "enable"
CONFIG_FILE = CONFIG_DIR / "config.json"
CREDENTIALS_FILE = CONFIG_DIR / "credentials.json"
VERSION = "0.10.2"

Class methods

cmd_activity_list(company_id : String, params = {} of String => String)
Source
cmd_approvals_approve(company_id : String, id : String, note : String | Nil = nil)
Source
cmd_approvals_list(company_id : String, params = {} of String => String)
Source
cmd_approvals_reject(company_id : String, id : String, note : String | Nil = nil)
Source
cmd_approvals_show(company_id : String, id : String)
Source
cmd_companies_list
Source
cmd_companies_show(id : String)
Source
cmd_contracts_list(company_id : String, params = {} of String => String)
Source
cmd_contracts_show(company_id : String, id : String)
Source
cmd_conversations_list(company_id : String, params = {} of String => String)
Source
cmd_conversations_show(company_id : String, id : String)
Source
cmd_me(contract_id : String | Nil = nil)
Source
cmd_profiles_list(params = {} of String => String)
Source
cmd_profiles_show(id : String)
Source
cmd_status
Source
cmd_tasks_comment(company_id : String, id : String, body_text : String, contract_id : String | Nil = nil)
Source
cmd_tasks_create(company_id : String, title : String, description : String | Nil = nil, assignee_id : String | Nil = nil, priority : String | Nil = nil, parent_id : String | Nil = nil, creator_contract_id : String | Nil = nil)
Source
cmd_tasks_list(company_id : String, params = {} of String => String)
Source
cmd_tasks_show(company_id : String, id : String)
Source
cmd_tasks_update(company_id : String, id : String, updates : Hash(String, String))
Source
name(data : JSON::Any, key : String) : String | Nil

The "name" of a nested object such as "assignee", or nil when that object is null.

Source
resolve_company(company_flag : String | Nil) : String
Source
str(data : JSON::Any | Nil, key : String) : String | Nil

A field as a string, or nil when the key is missing or its value is null. data["x"]?.try(&.as_s) raises on "x": null: []? returns JSON::Any(nil), not nil.

Source
task_record(data : JSON::Any) : Array(Tuple(String, String))

The rows enbl tasks:show prints.

Source

Nested types