@bussolabs/closeyourit-cli 0.0.10 → 0.0.12

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.
package/opencli.json CHANGED
@@ -437,7 +437,7 @@
437
437
  },
438
438
  {
439
439
  "name": "tickets",
440
- "description": "Tickets: list, show, create.",
440
+ "description": "Tickets: list, show (full body + comments + attachments), create, comments, attachment-download.",
441
441
  "commands": [
442
442
  {
443
443
  "name": "list",
@@ -470,11 +470,11 @@
470
470
  },
471
471
  {
472
472
  "name": "show",
473
- "description": "Show a single ticket.",
473
+ "description": "Show a single ticket in full: fields, description, BDD clauses (Given/When/Then/Expected), comments with their files, attachments.",
474
474
  "arguments": [
475
475
  {
476
476
  "name": "ID",
477
- "description": "Ticket id or code.",
477
+ "description": "Ticket id (UUID) or code (e.g. DRFL-3).",
478
478
  "required": true
479
479
  }
480
480
  ],
@@ -493,6 +493,87 @@
493
493
  }
494
494
  ]
495
495
  }
496
+ ],
497
+ "examples": [
498
+ "closeyourit tickets show DRFL-3 --project driverone-flutter",
499
+ "closeyourit tickets show DRFL-3 -p driverone-flutter --json"
500
+ ]
501
+ },
502
+ {
503
+ "name": "comments",
504
+ "description": "List all comments of a ticket (oldest first), including attached files.",
505
+ "arguments": [
506
+ {
507
+ "name": "ID",
508
+ "description": "Ticket id (UUID) or code (e.g. DRFL-3).",
509
+ "required": true
510
+ }
511
+ ],
512
+ "options": [
513
+ {
514
+ "name": "--project",
515
+ "aliases": [
516
+ "-p"
517
+ ],
518
+ "required": true,
519
+ "description": "Project id (UUID) or key.",
520
+ "arguments": [
521
+ {
522
+ "name": "PROJECT",
523
+ "required": true
524
+ }
525
+ ]
526
+ }
527
+ ]
528
+ },
529
+ {
530
+ "name": "attachment-download",
531
+ "description": "Download a ticket binary to disk: ticket attachments AND files attached to its comments.",
532
+ "arguments": [
533
+ {
534
+ "name": "ID",
535
+ "description": "Ticket id (UUID) or code (e.g. DRFL-3).",
536
+ "required": true
537
+ },
538
+ {
539
+ "name": "ATTACHMENT",
540
+ "description": "Attachment id (from show/comments/attachments output).",
541
+ "required": true
542
+ }
543
+ ],
544
+ "options": [
545
+ {
546
+ "name": "--project",
547
+ "aliases": [
548
+ "-p"
549
+ ],
550
+ "required": true,
551
+ "description": "Project id (UUID) or key.",
552
+ "arguments": [
553
+ {
554
+ "name": "PROJECT",
555
+ "required": true
556
+ }
557
+ ]
558
+ },
559
+ {
560
+ "name": "--out",
561
+ "description": "Output directory (default: current directory).",
562
+ "arguments": [
563
+ {
564
+ "name": "DIR"
565
+ }
566
+ ]
567
+ },
568
+ {
569
+ "name": "--filename",
570
+ "description": "Override the output filename.",
571
+ "arguments": [
572
+ {
573
+ "name": "NAME"
574
+ }
575
+ ]
576
+ }
496
577
  ]
497
578
  },
498
579
  {
@@ -600,6 +681,71 @@
600
681
  "examples": [
601
682
  "closeyourit tickets create --project acme-api --title \"Checkout fails\""
602
683
  ]
684
+ },
685
+ {
686
+ "name": "reject",
687
+ "description": "Reject the ticket review: send it back to work with a reason.",
688
+ "arguments": [
689
+ {
690
+ "name": "ID",
691
+ "required": true,
692
+ "description": "Ticket id."
693
+ }
694
+ ],
695
+ "options": [
696
+ {
697
+ "name": "--project",
698
+ "aliases": [
699
+ "-p"
700
+ ],
701
+ "required": true,
702
+ "description": "Project id (UUID) or key.",
703
+ "arguments": [
704
+ {
705
+ "name": "PROJECT",
706
+ "required": true
707
+ }
708
+ ]
709
+ },
710
+ {
711
+ "name": "--reason",
712
+ "required": true,
713
+ "description": "Why the review is rejected (posted as a comment).",
714
+ "arguments": [
715
+ {
716
+ "name": "REASON",
717
+ "required": true
718
+ }
719
+ ]
720
+ }
721
+ ]
722
+ },
723
+ {
724
+ "name": "approve",
725
+ "description": "Approve the ticket review: move it to the first done status.",
726
+ "arguments": [
727
+ {
728
+ "name": "ID",
729
+ "required": true,
730
+ "description": "Ticket id."
731
+ }
732
+ ],
733
+ "options": [
734
+ {
735
+ "name": "--project",
736
+ "aliases": [
737
+ "-p"
738
+ ],
739
+ "required": true,
740
+ "description": "Project id (UUID) or key.",
741
+ "arguments": [
742
+ {
743
+ "name": "PROJECT",
744
+ "required": true
745
+ }
746
+ ]
747
+ }
748
+ ]
603
749
  }
604
750
  ]
605
751
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bussolabs/closeyourit-cli",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "description": "CLI for CloseYourIt — manage org, errors, tokens and tickets with your user token",
5
5
  "publishConfig": {
6
6
  "access": "public"