[[command]]
name = "notion"
description = "CLI client for the Notion API (notion-cli by 4ier). All exposed subcommands (block get/list, comment get/list, db list/open/query/view, file list, page list/open/view, user get/list/me, search, status, doctor) are read-only queries against the Notion REST API over HTTPS. doctor checks local configuration and API connectivity. Every API-facing command requires a stored integration token and makes network requests. Relatively new project."
url = "https://github.com/4ier/notion-cli"
bare_flags = ["--help", "--version", "-h"]

[[command.sub]]
name = "block"
nested_bare = true
[[command.sub.sub]]
name = "get"
tolerate_unknown_short = true
tolerate_unknown_long = true
[[command.sub.sub]]
name = "list"
tolerate_unknown_short = true
tolerate_unknown_long = true

[[command.sub]]
name = "comment"
nested_bare = true
[[command.sub.sub]]
name = "get"
tolerate_unknown_short = true
tolerate_unknown_long = true
[[command.sub.sub]]
name = "list"
tolerate_unknown_short = true
tolerate_unknown_long = true

[[command.sub]]
name = "db"
nested_bare = true
[[command.sub.sub]]
name = "list"
tolerate_unknown_short = true
tolerate_unknown_long = true
[[command.sub.sub]]
name = "open"
tolerate_unknown_short = true
tolerate_unknown_long = true
[[command.sub.sub]]
name = "query"
tolerate_unknown_short = true
tolerate_unknown_long = true
[[command.sub.sub]]
name = "view"
tolerate_unknown_short = true
tolerate_unknown_long = true

[[command.sub]]
name = "doctor"
tolerate_unknown_short = true
tolerate_unknown_long = true

[[command.sub]]
name = "file"
nested_bare = true
[[command.sub.sub]]
name = "list"
tolerate_unknown_short = true
tolerate_unknown_long = true

[[command.sub]]
name = "page"
nested_bare = true
[[command.sub.sub]]
name = "list"
tolerate_unknown_short = true
tolerate_unknown_long = true
[[command.sub.sub]]
name = "open"
tolerate_unknown_short = true
tolerate_unknown_long = true
[[command.sub.sub]]
name = "view"
tolerate_unknown_short = true
tolerate_unknown_long = true

[[command.sub]]
name = "search"
tolerate_unknown_short = true
tolerate_unknown_long = true

[[command.sub]]
name = "status"
tolerate_unknown_short = true
tolerate_unknown_long = true

[[command.sub]]
name = "user"
nested_bare = true
[[command.sub.sub]]
name = "get"
tolerate_unknown_short = true
tolerate_unknown_long = true
[[command.sub.sub]]
name = "list"
tolerate_unknown_short = true
tolerate_unknown_long = true
[[command.sub.sub]]
name = "me"
tolerate_unknown_short = true
tolerate_unknown_long = true
