@krodak/clickup-cli 0.12.2 → 0.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +130 -46
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -170,26 +170,15 @@ var ClickUpClient = class {
170
170
  return `/list/${listId}/task?${qs}`;
171
171
  });
172
172
  }
173
- async getMyTasksFromList(listId) {
174
- const me = await this.getMe();
175
- return this.getTasksFromList(listId, { "assignees[]": String(me.id) });
176
- }
177
173
  async getTask(taskId) {
178
174
  return this.request(`/task/${taskId}?include_markdown_description=true`);
179
175
  }
180
- async updateTaskMarkdown(taskId, markdown) {
181
- return this.updateTask(taskId, { markdown_content: markdown });
182
- }
183
176
  async createTask(listId, options) {
184
177
  return this.request(`/list/${listId}/task`, {
185
178
  method: "POST",
186
179
  body: JSON.stringify(options)
187
180
  });
188
181
  }
189
- async getAssignedListIds(teamId) {
190
- const tasks = await this.getMyTasks(teamId);
191
- return new Set(tasks.map((t) => t.list.id));
192
- }
193
182
  async getTeams() {
194
183
  const data = await this.request("/team");
195
184
  return data.teams ?? [];
@@ -1626,7 +1615,7 @@ function bashCompletion() {
1626
1615
  cword=$COMP_CWORD
1627
1616
  fi
1628
1617
 
1629
- local commands="init tasks initiatives task update create sprint subtasks comment comments lists spaces inbox assigned open summary overdue assign config completion"
1618
+ local commands="init auth tasks initiatives task update create sprint sprints subtasks comment comments activity lists spaces inbox assigned open search summary overdue assign depend move config completion"
1630
1619
 
1631
1620
  if [[ $cword -eq 1 ]]; then
1632
1621
  COMPREPLY=($(compgen -W "$commands --help --version" -- "$cur"))
@@ -1648,29 +1637,35 @@ function bashCompletion() {
1648
1637
 
1649
1638
  case "$cmd" in
1650
1639
  tasks|initiatives)
1651
- COMPREPLY=($(compgen -W "--status --list --space --name --json" -- "$cur"))
1640
+ COMPREPLY=($(compgen -W "--status --list --space --name --include-closed --json" -- "$cur"))
1652
1641
  ;;
1653
1642
  task)
1654
1643
  COMPREPLY=($(compgen -W "--json" -- "$cur"))
1655
1644
  ;;
1656
1645
  update)
1657
- COMPREPLY=($(compgen -W "--name --description --status --priority --due-date --assignee" -- "$cur"))
1646
+ COMPREPLY=($(compgen -W "-n --name -d --description -s --status --priority --due-date --time-estimate --assignee --parent --json" -- "$cur"))
1658
1647
  ;;
1659
1648
  create)
1660
- COMPREPLY=($(compgen -W "--list --name --description --parent --status --priority --due-date --assignee --tags" -- "$cur"))
1649
+ COMPREPLY=($(compgen -W "-l --list -n --name -d --description -p --parent -s --status --priority --due-date --assignee --tags --custom-item-id --time-estimate --json" -- "$cur"))
1661
1650
  ;;
1662
1651
  sprint)
1663
- COMPREPLY=($(compgen -W "--status --space --json" -- "$cur"))
1652
+ COMPREPLY=($(compgen -W "--status --space --include-closed --json" -- "$cur"))
1653
+ ;;
1654
+ sprints)
1655
+ COMPREPLY=($(compgen -W "--space --json" -- "$cur"))
1664
1656
  ;;
1665
1657
  subtasks)
1666
- COMPREPLY=($(compgen -W "--json" -- "$cur"))
1658
+ COMPREPLY=($(compgen -W "--status --name --include-closed --json" -- "$cur"))
1667
1659
  ;;
1668
1660
  comment)
1669
- COMPREPLY=($(compgen -W "--message" -- "$cur"))
1661
+ COMPREPLY=($(compgen -W "-m --message --json" -- "$cur"))
1670
1662
  ;;
1671
1663
  comments)
1672
1664
  COMPREPLY=($(compgen -W "--json" -- "$cur"))
1673
1665
  ;;
1666
+ activity)
1667
+ COMPREPLY=($(compgen -W "--json" -- "$cur"))
1668
+ ;;
1674
1669
  lists)
1675
1670
  COMPREPLY=($(compgen -W "--name --json" -- "$cur"))
1676
1671
  ;;
@@ -1678,23 +1673,35 @@ function bashCompletion() {
1678
1673
  COMPREPLY=($(compgen -W "--name --my --json" -- "$cur"))
1679
1674
  ;;
1680
1675
  inbox)
1681
- COMPREPLY=($(compgen -W "--json --days" -- "$cur"))
1676
+ COMPREPLY=($(compgen -W "--include-closed --json --days" -- "$cur"))
1682
1677
  ;;
1683
1678
  assigned)
1684
- COMPREPLY=($(compgen -W "--include-closed --json" -- "$cur"))
1679
+ COMPREPLY=($(compgen -W "--status --include-closed --json" -- "$cur"))
1685
1680
  ;;
1686
1681
  open)
1687
1682
  COMPREPLY=($(compgen -W "--json" -- "$cur"))
1688
1683
  ;;
1684
+ search)
1685
+ COMPREPLY=($(compgen -W "--status --include-closed --json" -- "$cur"))
1686
+ ;;
1689
1687
  summary)
1690
1688
  COMPREPLY=($(compgen -W "--hours --json" -- "$cur"))
1691
1689
  ;;
1692
1690
  overdue)
1693
- COMPREPLY=($(compgen -W "--json" -- "$cur"))
1691
+ COMPREPLY=($(compgen -W "--include-closed --json" -- "$cur"))
1694
1692
  ;;
1695
1693
  assign)
1696
1694
  COMPREPLY=($(compgen -W "--to --remove --json" -- "$cur"))
1697
1695
  ;;
1696
+ auth)
1697
+ COMPREPLY=($(compgen -W "--json" -- "$cur"))
1698
+ ;;
1699
+ depend)
1700
+ COMPREPLY=($(compgen -W "--on --blocks --remove --json" -- "$cur"))
1701
+ ;;
1702
+ move)
1703
+ COMPREPLY=($(compgen -W "--to --remove --json" -- "$cur"))
1704
+ ;;
1698
1705
  config)
1699
1706
  if [[ $cword -eq 2 ]]; then
1700
1707
  COMPREPLY=($(compgen -W "get set path" -- "$cur"))
@@ -1722,23 +1729,29 @@ _cu() {
1722
1729
  local -a commands
1723
1730
  commands=(
1724
1731
  'init:Set up cu for the first time'
1732
+ 'auth:Validate API token and show current user'
1725
1733
  'tasks:List tasks assigned to me'
1726
1734
  'initiatives:List initiatives assigned to me'
1727
1735
  'task:Get task details'
1728
1736
  'update:Update a task'
1729
1737
  'create:Create a new task'
1730
1738
  'sprint:List my tasks in the current active sprint'
1739
+ 'sprints:List all sprints in sprint folders'
1731
1740
  'subtasks:List subtasks of a task or initiative'
1732
1741
  'comment:Post a comment on a task'
1733
1742
  'comments:List comments on a task'
1743
+ 'activity:Show task details and comments combined'
1734
1744
  'lists:List all lists in a space'
1735
1745
  'spaces:List spaces in your workspace'
1736
1746
  'inbox:Recently updated tasks grouped by time period'
1737
1747
  'assigned:Show all tasks assigned to me'
1738
1748
  'open:Open a task in the browser by ID or name'
1749
+ 'search:Search my tasks by name'
1739
1750
  'summary:Daily standup summary'
1740
1751
  'overdue:List tasks that are past their due date'
1741
1752
  'assign:Assign or unassign users from a task'
1753
+ 'depend:Add or remove task dependencies'
1754
+ 'move:Add or remove a task from a list'
1742
1755
  'config:Manage CLI configuration'
1743
1756
  'completion:Output shell completion script'
1744
1757
  )
@@ -1761,6 +1774,7 @@ _cu() {
1761
1774
  '--list[Filter by list ID]:list_id:' \\
1762
1775
  '--space[Filter by space ID]:space_id:' \\
1763
1776
  '--name[Filter by name]:query:' \\
1777
+ '--include-closed[Include done/closed tasks]' \\
1764
1778
  '--json[Force JSON output]'
1765
1779
  ;;
1766
1780
  task)
@@ -1776,7 +1790,10 @@ _cu() {
1776
1790
  '(-s --status)'{-s,--status}'[New status]:status:(open "in progress" "in review" done closed)' \\
1777
1791
  '--priority[Priority level]:priority:(urgent high normal low)' \\
1778
1792
  '--due-date[Due date]:date:' \\
1779
- '--assignee[Add assignee]:user_id:'
1793
+ '--time-estimate[Time estimate]:duration:' \\
1794
+ '--assignee[Add assignee]:user_id:' \\
1795
+ '--parent[Set parent task]:task_id:' \\
1796
+ '--json[Force JSON output]'
1780
1797
  ;;
1781
1798
  create)
1782
1799
  _arguments \\
@@ -1788,29 +1805,47 @@ _cu() {
1788
1805
  '--priority[Priority level]:priority:(urgent high normal low)' \\
1789
1806
  '--due-date[Due date]:date:' \\
1790
1807
  '--assignee[Assignee user ID]:user_id:' \\
1791
- '--tags[Comma-separated tag names]:tags:'
1808
+ '--tags[Comma-separated tag names]:tags:' \\
1809
+ '--custom-item-id[Custom task type ID]:id:' \\
1810
+ '--time-estimate[Time estimate]:duration:' \\
1811
+ '--json[Force JSON output]'
1792
1812
  ;;
1793
1813
  sprint)
1794
1814
  _arguments \\
1795
1815
  '--status[Filter by status]:status:(open "in progress" "in review" done closed)' \\
1796
1816
  '--space[Narrow sprint search to a space]:space:' \\
1817
+ '--include-closed[Include done/closed tasks]' \\
1818
+ '--json[Force JSON output]'
1819
+ ;;
1820
+ sprints)
1821
+ _arguments \\
1822
+ '--space[Filter by space]:space:' \\
1797
1823
  '--json[Force JSON output]'
1798
1824
  ;;
1799
1825
  subtasks)
1800
1826
  _arguments \\
1801
1827
  '1:task_id:' \\
1828
+ '--status[Filter by status]:status:(open "in progress" "in review" done closed)' \\
1829
+ '--name[Filter by name]:query:' \\
1830
+ '--include-closed[Include closed/done subtasks]' \\
1802
1831
  '--json[Force JSON output]'
1803
1832
  ;;
1804
1833
  comment)
1805
1834
  _arguments \\
1806
1835
  '1:task_id:' \\
1807
- '(-m --message)'{-m,--message}'[Comment text]:text:'
1836
+ '(-m --message)'{-m,--message}'[Comment text]:text:' \\
1837
+ '--json[Force JSON output]'
1808
1838
  ;;
1809
1839
  comments)
1810
1840
  _arguments \\
1811
1841
  '1:task_id:' \\
1812
1842
  '--json[Force JSON output]'
1813
1843
  ;;
1844
+ activity)
1845
+ _arguments \\
1846
+ '1:task_id:' \\
1847
+ '--json[Force JSON output]'
1848
+ ;;
1814
1849
  lists)
1815
1850
  _arguments \\
1816
1851
  '1:space_id:' \\
@@ -1825,11 +1860,13 @@ _cu() {
1825
1860
  ;;
1826
1861
  inbox)
1827
1862
  _arguments \\
1863
+ '--include-closed[Include done/closed tasks]' \\
1828
1864
  '--json[Force JSON output]' \\
1829
1865
  '--days[Lookback period in days]:days:'
1830
1866
  ;;
1831
1867
  assigned)
1832
1868
  _arguments \\
1869
+ '--status[Show only tasks with this status]:status:(open "in progress" "in review" done closed)' \\
1833
1870
  '--include-closed[Include done/closed tasks]' \\
1834
1871
  '--json[Force JSON output]'
1835
1872
  ;;
@@ -1838,6 +1875,13 @@ _cu() {
1838
1875
  '1:query:' \\
1839
1876
  '--json[Output task JSON instead of opening]'
1840
1877
  ;;
1878
+ search)
1879
+ _arguments \\
1880
+ '1:query:' \\
1881
+ '--status[Filter by status]:status:(open "in progress" "in review" done closed)' \\
1882
+ '--include-closed[Include done/closed tasks in search]' \\
1883
+ '--json[Force JSON output]'
1884
+ ;;
1841
1885
  summary)
1842
1886
  _arguments \\
1843
1887
  '--hours[Completed-tasks lookback in hours]:hours:' \\
@@ -1845,6 +1889,7 @@ _cu() {
1845
1889
  ;;
1846
1890
  overdue)
1847
1891
  _arguments \\
1892
+ '--include-closed[Include done/closed overdue tasks]' \\
1848
1893
  '--json[Force JSON output]'
1849
1894
  ;;
1850
1895
  assign)
@@ -1854,6 +1899,25 @@ _cu() {
1854
1899
  '--remove[Remove assignee]:user_id:' \\
1855
1900
  '--json[Force JSON output]'
1856
1901
  ;;
1902
+ auth)
1903
+ _arguments \\
1904
+ '--json[Force JSON output]'
1905
+ ;;
1906
+ depend)
1907
+ _arguments \\
1908
+ '1:task_id:' \\
1909
+ '--on[Task that this task depends on]:task_id:' \\
1910
+ '--blocks[Task that this task blocks]:task_id:' \\
1911
+ '--remove[Remove the dependency instead of adding it]' \\
1912
+ '--json[Force JSON output]'
1913
+ ;;
1914
+ move)
1915
+ _arguments \\
1916
+ '1:task_id:' \\
1917
+ '--to[Add task to this list]:list_id:' \\
1918
+ '--remove[Remove task from this list]:list_id:' \\
1919
+ '--json[Force JSON output]'
1920
+ ;;
1857
1921
  config)
1858
1922
  local -a config_cmds
1859
1923
  config_cmds=(
@@ -1889,54 +1953,59 @@ _cu
1889
1953
  `;
1890
1954
  }
1891
1955
  function fishCompletion() {
1892
- return `# Disable file completions
1893
- complete -c cu -f
1956
+ return `complete -c cu -f
1894
1957
 
1895
- # Global flags
1896
1958
  complete -c cu -n __fish_use_subcommand -s h -l help -d 'Show help'
1897
1959
  complete -c cu -n __fish_use_subcommand -s V -l version -d 'Show version'
1898
1960
 
1899
- # Commands
1900
1961
  complete -c cu -n __fish_use_subcommand -a init -d 'Set up cu for the first time'
1962
+ complete -c cu -n __fish_use_subcommand -a auth -d 'Validate API token and show current user'
1901
1963
  complete -c cu -n __fish_use_subcommand -a tasks -d 'List tasks assigned to me'
1902
1964
  complete -c cu -n __fish_use_subcommand -a initiatives -d 'List initiatives assigned to me'
1903
1965
  complete -c cu -n __fish_use_subcommand -a task -d 'Get task details'
1904
1966
  complete -c cu -n __fish_use_subcommand -a update -d 'Update a task'
1905
1967
  complete -c cu -n __fish_use_subcommand -a create -d 'Create a new task'
1906
1968
  complete -c cu -n __fish_use_subcommand -a sprint -d 'List my tasks in the current active sprint'
1969
+ complete -c cu -n __fish_use_subcommand -a sprints -d 'List all sprints in sprint folders'
1907
1970
  complete -c cu -n __fish_use_subcommand -a subtasks -d 'List subtasks of a task or initiative'
1908
1971
  complete -c cu -n __fish_use_subcommand -a comment -d 'Post a comment on a task'
1909
1972
  complete -c cu -n __fish_use_subcommand -a comments -d 'List comments on a task'
1973
+ complete -c cu -n __fish_use_subcommand -a activity -d 'Show task details and comments combined'
1910
1974
  complete -c cu -n __fish_use_subcommand -a lists -d 'List all lists in a space'
1911
1975
  complete -c cu -n __fish_use_subcommand -a spaces -d 'List spaces in your workspace'
1912
1976
  complete -c cu -n __fish_use_subcommand -a inbox -d 'Recently updated tasks grouped by time period'
1913
1977
  complete -c cu -n __fish_use_subcommand -a assigned -d 'Show all tasks assigned to me'
1914
1978
  complete -c cu -n __fish_use_subcommand -a open -d 'Open a task in the browser by ID or name'
1979
+ complete -c cu -n __fish_use_subcommand -a search -d 'Search my tasks by name'
1915
1980
  complete -c cu -n __fish_use_subcommand -a summary -d 'Daily standup summary'
1916
1981
  complete -c cu -n __fish_use_subcommand -a overdue -d 'List tasks that are past their due date'
1917
1982
  complete -c cu -n __fish_use_subcommand -a assign -d 'Assign or unassign users from a task'
1983
+ complete -c cu -n __fish_use_subcommand -a depend -d 'Add or remove task dependencies'
1984
+ complete -c cu -n __fish_use_subcommand -a move -d 'Add or remove a task from a list'
1918
1985
  complete -c cu -n __fish_use_subcommand -a config -d 'Manage CLI configuration'
1919
1986
  complete -c cu -n __fish_use_subcommand -a completion -d 'Output shell completion script'
1920
1987
 
1921
- # tasks / initiatives flags
1988
+ complete -c cu -n '__fish_seen_subcommand_from auth' -l json -d 'Force JSON output'
1989
+
1922
1990
  complete -c cu -n '__fish_seen_subcommand_from tasks initiatives' -l status -d 'Filter by status'
1923
1991
  complete -c cu -n '__fish_seen_subcommand_from tasks initiatives' -l list -d 'Filter by list ID'
1924
1992
  complete -c cu -n '__fish_seen_subcommand_from tasks initiatives' -l space -d 'Filter by space ID'
1925
1993
  complete -c cu -n '__fish_seen_subcommand_from tasks initiatives' -l name -d 'Filter by name'
1994
+ complete -c cu -n '__fish_seen_subcommand_from tasks initiatives' -l include-closed -d 'Include done/closed tasks'
1926
1995
  complete -c cu -n '__fish_seen_subcommand_from tasks initiatives' -l json -d 'Force JSON output'
1927
1996
 
1928
- # task flags
1929
1997
  complete -c cu -n '__fish_seen_subcommand_from task' -l json -d 'Force JSON output'
1930
1998
 
1931
- # update flags
1932
1999
  complete -c cu -n '__fish_seen_subcommand_from update' -s n -l name -d 'New task name'
1933
2000
  complete -c cu -n '__fish_seen_subcommand_from update' -s d -l description -d 'New description'
1934
2001
  complete -c cu -n '__fish_seen_subcommand_from update' -s s -l status -d 'New status'
1935
2002
  complete -c cu -n '__fish_seen_subcommand_from update' -l priority -d 'Priority level' -a 'urgent high normal low'
1936
2003
  complete -c cu -n '__fish_seen_subcommand_from update' -l due-date -d 'Due date'
2004
+ complete -c cu -n '__fish_seen_subcommand_from update' -l time-estimate -d 'Time estimate'
1937
2005
  complete -c cu -n '__fish_seen_subcommand_from update' -l assignee -d 'Add assignee'
2006
+ complete -c cu -n '__fish_seen_subcommand_from update' -l parent -d 'Set parent task'
2007
+ complete -c cu -n '__fish_seen_subcommand_from update' -l json -d 'Force JSON output'
1938
2008
 
1939
- # create flags
1940
2009
  complete -c cu -n '__fish_seen_subcommand_from create' -s l -l list -d 'Target list ID'
1941
2010
  complete -c cu -n '__fish_seen_subcommand_from create' -s n -l name -d 'Task name'
1942
2011
  complete -c cu -n '__fish_seen_subcommand_from create' -s d -l description -d 'Task description'
@@ -1946,60 +2015,75 @@ complete -c cu -n '__fish_seen_subcommand_from create' -l priority -d 'Priority
1946
2015
  complete -c cu -n '__fish_seen_subcommand_from create' -l due-date -d 'Due date'
1947
2016
  complete -c cu -n '__fish_seen_subcommand_from create' -l assignee -d 'Assignee user ID'
1948
2017
  complete -c cu -n '__fish_seen_subcommand_from create' -l tags -d 'Comma-separated tag names'
2018
+ complete -c cu -n '__fish_seen_subcommand_from create' -l custom-item-id -d 'Custom task type ID'
2019
+ complete -c cu -n '__fish_seen_subcommand_from create' -l time-estimate -d 'Time estimate'
2020
+ complete -c cu -n '__fish_seen_subcommand_from create' -l json -d 'Force JSON output'
1949
2021
 
1950
- # sprint flags
1951
2022
  complete -c cu -n '__fish_seen_subcommand_from sprint' -l status -d 'Filter by status'
1952
2023
  complete -c cu -n '__fish_seen_subcommand_from sprint' -l space -d 'Narrow sprint search to a space'
2024
+ complete -c cu -n '__fish_seen_subcommand_from sprint' -l include-closed -d 'Include done/closed tasks'
1953
2025
  complete -c cu -n '__fish_seen_subcommand_from sprint' -l json -d 'Force JSON output'
1954
2026
 
1955
- # subtasks flags
2027
+ complete -c cu -n '__fish_seen_subcommand_from sprints' -l space -d 'Filter by space'
2028
+ complete -c cu -n '__fish_seen_subcommand_from sprints' -l json -d 'Force JSON output'
2029
+
2030
+ complete -c cu -n '__fish_seen_subcommand_from subtasks' -l status -d 'Filter by status'
2031
+ complete -c cu -n '__fish_seen_subcommand_from subtasks' -l name -d 'Filter by name'
2032
+ complete -c cu -n '__fish_seen_subcommand_from subtasks' -l include-closed -d 'Include closed/done subtasks'
1956
2033
  complete -c cu -n '__fish_seen_subcommand_from subtasks' -l json -d 'Force JSON output'
1957
2034
 
1958
- # comment flags
1959
2035
  complete -c cu -n '__fish_seen_subcommand_from comment' -s m -l message -d 'Comment text'
2036
+ complete -c cu -n '__fish_seen_subcommand_from comment' -l json -d 'Force JSON output'
1960
2037
 
1961
- # comments flags
1962
2038
  complete -c cu -n '__fish_seen_subcommand_from comments' -l json -d 'Force JSON output'
1963
2039
 
1964
- # lists flags
2040
+ complete -c cu -n '__fish_seen_subcommand_from activity' -l json -d 'Force JSON output'
2041
+
1965
2042
  complete -c cu -n '__fish_seen_subcommand_from lists' -l name -d 'Filter by name'
1966
2043
  complete -c cu -n '__fish_seen_subcommand_from lists' -l json -d 'Force JSON output'
1967
2044
 
1968
- # spaces flags
1969
2045
  complete -c cu -n '__fish_seen_subcommand_from spaces' -l name -d 'Filter spaces by name'
1970
2046
  complete -c cu -n '__fish_seen_subcommand_from spaces' -l my -d 'Show only spaces where I have assigned tasks'
1971
2047
  complete -c cu -n '__fish_seen_subcommand_from spaces' -l json -d 'Force JSON output'
1972
2048
 
1973
- # inbox flags
2049
+ complete -c cu -n '__fish_seen_subcommand_from inbox' -l include-closed -d 'Include done/closed tasks'
1974
2050
  complete -c cu -n '__fish_seen_subcommand_from inbox' -l json -d 'Force JSON output'
1975
2051
  complete -c cu -n '__fish_seen_subcommand_from inbox' -l days -d 'Lookback period in days'
1976
2052
 
1977
- # assigned flags
2053
+ complete -c cu -n '__fish_seen_subcommand_from assigned' -l status -d 'Show only tasks with this status'
1978
2054
  complete -c cu -n '__fish_seen_subcommand_from assigned' -l include-closed -d 'Include done/closed tasks'
1979
2055
  complete -c cu -n '__fish_seen_subcommand_from assigned' -l json -d 'Force JSON output'
1980
2056
 
1981
- # open flags
1982
2057
  complete -c cu -n '__fish_seen_subcommand_from open' -l json -d 'Output task JSON instead of opening'
1983
2058
 
1984
- # summary flags
2059
+ complete -c cu -n '__fish_seen_subcommand_from search' -l status -d 'Filter by status'
2060
+ complete -c cu -n '__fish_seen_subcommand_from search' -l include-closed -d 'Include done/closed tasks in search'
2061
+ complete -c cu -n '__fish_seen_subcommand_from search' -l json -d 'Force JSON output'
2062
+
1985
2063
  complete -c cu -n '__fish_seen_subcommand_from summary' -l hours -d 'Completed-tasks lookback in hours'
1986
2064
  complete -c cu -n '__fish_seen_subcommand_from summary' -l json -d 'Force JSON output'
1987
2065
 
1988
- # overdue flags
2066
+ complete -c cu -n '__fish_seen_subcommand_from overdue' -l include-closed -d 'Include done/closed overdue tasks'
1989
2067
  complete -c cu -n '__fish_seen_subcommand_from overdue' -l json -d 'Force JSON output'
1990
2068
 
1991
- # assign flags
1992
2069
  complete -c cu -n '__fish_seen_subcommand_from assign' -l to -d 'Add assignee'
1993
2070
  complete -c cu -n '__fish_seen_subcommand_from assign' -l remove -d 'Remove assignee'
1994
2071
  complete -c cu -n '__fish_seen_subcommand_from assign' -l json -d 'Force JSON output'
1995
2072
 
1996
- # config subcommands
2073
+ complete -c cu -n '__fish_seen_subcommand_from depend' -l on -d 'Task that this task depends on'
2074
+ complete -c cu -n '__fish_seen_subcommand_from depend' -l blocks -d 'Task that this task blocks'
2075
+ complete -c cu -n '__fish_seen_subcommand_from depend' -l remove -d 'Remove the dependency'
2076
+ complete -c cu -n '__fish_seen_subcommand_from depend' -l json -d 'Force JSON output'
2077
+
2078
+ complete -c cu -n '__fish_seen_subcommand_from move' -l to -d 'Add task to this list'
2079
+ complete -c cu -n '__fish_seen_subcommand_from move' -l remove -d 'Remove task from this list'
2080
+ complete -c cu -n '__fish_seen_subcommand_from move' -l json -d 'Force JSON output'
2081
+
1997
2082
  complete -c cu -n '__fish_seen_subcommand_from config; and not __fish_seen_subcommand_from get set path' -a get -d 'Print a config value'
1998
2083
  complete -c cu -n '__fish_seen_subcommand_from config; and not __fish_seen_subcommand_from get set path' -a set -d 'Set a config value'
1999
2084
  complete -c cu -n '__fish_seen_subcommand_from config; and not __fish_seen_subcommand_from get set path' -a path -d 'Print config file path'
2000
2085
  complete -c cu -n '__fish_seen_subcommand_from get set' -a 'apiToken teamId' -d 'Config key'
2001
2086
 
2002
- # completion subcommand
2003
2087
  complete -c cu -n '__fish_seen_subcommand_from completion' -a 'bash zsh fish' -d 'Shell type'
2004
2088
  `;
2005
2089
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krodak/clickup-cli",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
4
4
  "description": "ClickUp CLI for AI agents and humans",
5
5
  "type": "module",
6
6
  "license": "MIT",