@@ -31,6 +31,8 @@ namespace PlanifyCLI {
3131 public string ? description { get ; set ; default = null ; }
3232 public string ? project_name { get ; set ; default = null ; }
3333 public string ? project_id { get ; set ; default = null ; }
34+ public string ? section_name { get ; set ; default = null ; }
35+ public string ? section_id { get ; set ; default = null ; }
3436 public string ? parent_id { get ; set ; default = null ; }
3537 public int priority { get ; set ; default = 4 ; }
3638 public string ? due_date { get ; set ; default = null ; }
@@ -49,6 +51,8 @@ namespace PlanifyCLI {
4951 public string ? description { get ; set ; default = null ; }
5052 public string ? project_name { get ; set ; default = null ; }
5153 public string ? project_id { get ; set ; default = null ; }
54+ public string ? section_name { get ; set ; default = null ; }
55+ public string ? section_id { get ; set ; default = null ; }
5256 public string ? parent_id { get ; set ; default = null ; }
5357 public int priority { get ; set ; default = - 1 ; }
5458 public string ? due_date { get ; set ; default = null ; }
@@ -170,6 +174,22 @@ namespace PlanifyCLI {
170174 exit_code = 1 ;
171175 return null ;
172176 }
177+ } else if (arg == " -s" || arg == " --section" ) {
178+ if (i + 1 < args. length) {
179+ update_args. section_name = args[++ i];
180+ } else {
181+ stderr. printf (" Error: %s requires an argument\n " , arg);
182+ exit_code = 1 ;
183+ return null ;
184+ }
185+ } else if (arg == " -S" || arg == " --section-id" ) {
186+ if (i + 1 < args. length) {
187+ update_args. section_id = args[++ i];
188+ } else {
189+ stderr. printf (" Error: %s requires an argument\n " , arg);
190+ exit_code = 1 ;
191+ return null ;
192+ }
173193 } else if (arg == " -a" || arg == " --parent-id" ) {
174194 if (i + 1 < args. length) {
175195 update_args. parent_id = args[++ i];
@@ -277,6 +297,22 @@ namespace PlanifyCLI {
277297 exit_code = 1 ;
278298 return null ;
279299 }
300+ } else if (arg == " -s" || arg == " --section" ) {
301+ if (i + 1 < args. length) {
302+ task_args. section_name = args[++ i];
303+ } else {
304+ stderr. printf (" Error: %s requires an argument\n " , arg);
305+ exit_code = 1 ;
306+ return null ;
307+ }
308+ } else if (arg == " -S" || arg == " --section-id" ) {
309+ if (i + 1 < args. length) {
310+ task_args. section_id = args[++ i];
311+ } else {
312+ stderr. printf (" Error: %s requires an argument\n " , arg);
313+ exit_code = 1 ;
314+ return null ;
315+ }
280316 } else if (arg == " -a" || arg == " --parent-id" ) {
281317 if (i + 1 < args. length) {
282318 task_args. parent_id = args[++ i];
@@ -360,6 +396,8 @@ namespace PlanifyCLI {
360396 stdout. printf (" -d, --description=DESC Task description\n " );
361397 stdout. printf (" -p, --project=PROJECT Project name (defaults to inbox)\n " );
362398 stdout. printf (" -i, --project-id=ID Project ID (preferred over name)\n " );
399+ stdout. printf (" -s, --section=SECTION Section name\n " );
400+ stdout. printf (" -S, --section-id=ID Section ID (preferred over name)\n " );
363401 stdout. printf (" -a, --parent-id=ID Parent task ID (creates a subtask)\n " );
364402 stdout. printf (" -P, --priority=1-4 Priority: 1=high, 2=medium, 3=low, 4=none (default: 4)\n " );
365403 stdout. printf (" -D, --due=DATE Due date in YYYY-MM-DD format\n " );
@@ -376,6 +414,8 @@ namespace PlanifyCLI {
376414 stdout. printf (" -d, --description=DESC New task description\n " );
377415 stdout. printf (" -p, --project=PROJECT Move to project by name\n " );
378416 stdout. printf (" -i, --project-id=ID Move to project by ID (preferred over name)\n " );
417+ stdout. printf (" -s, --section=SECTION Move to section by name\n " );
418+ stdout. printf (" -S, --section-id=ID Move to section by ID (preferred over name)\n " );
379419 stdout. printf (" -a, --parent-id=ID New parent task ID\n " );
380420 stdout. printf (" -P, --priority=1-4 Priority: 1=high, 2=medium, 3=low, 4=none\n " );
381421 stdout. printf (" -D, --due=DATE Due date in YYYY-MM-DD format\n " );
0 commit comments