@mattpolzin/harmony 0.6.0 → 0.7.0
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.
- harmony-npm/harmony +296 -240
- harmony-npm/package.json +1 -1
harmony-npm/harmony
CHANGED
|
@@ -320,6 +320,13 @@ const git_remote_tracking_branch = (git, onSuccess, onFailure) =>
|
|
|
320
320
|
onFailure
|
|
321
321
|
)
|
|
322
322
|
|
|
323
|
+
const git_user_email = (git, onSuccess, onFailure) =>
|
|
324
|
+
idris__git_unpromisify(
|
|
325
|
+
git.raw('config', '--get', 'user.email'),
|
|
326
|
+
r => onSuccess(r.trim()),
|
|
327
|
+
onFailure
|
|
328
|
+
)
|
|
329
|
+
|
|
323
330
|
|
|
324
331
|
|
|
325
332
|
const { Octokit } = require('octokit')
|
|
@@ -359,7 +366,7 @@ const okit_get_repo_default_branch = (octokit, org, repo, onSuccess, onFailure)
|
|
|
359
366
|
const digTeams = teamsJson =>
|
|
360
367
|
teamsJson.map(t => t.slug)
|
|
361
368
|
|
|
362
|
-
// Executes callback with [String]
|
|
369
|
+
// Executes callback with [String] (string array)
|
|
363
370
|
const okit_list_teams = (octokit, org, onSuccess, onFailure) =>
|
|
364
371
|
idris__okit_unpromisify(
|
|
365
372
|
octokit.rest.teams.list({ org, per_page: 100 }),
|
|
@@ -367,6 +374,14 @@ const okit_list_teams = (octokit, org, onSuccess, onFailure) =>
|
|
|
367
374
|
idris__okit_stringify_error(onFailure)
|
|
368
375
|
)
|
|
369
376
|
|
|
377
|
+
// Executes callback with [String] (string array)
|
|
378
|
+
const okit_list_my_teams = (octokit, onSuccess, onFailure) =>
|
|
379
|
+
idris__okit_unpromisify(
|
|
380
|
+
octokit.rest.teams.listForAuthenticatedUser({per_page: 100}),
|
|
381
|
+
r => onSuccess(newline_delimited(digTeams(r.data))),
|
|
382
|
+
idris__okit_stringify_error(onFailure)
|
|
383
|
+
)
|
|
384
|
+
|
|
370
385
|
// list PRs for branch
|
|
371
386
|
const digPr = pr => {
|
|
372
387
|
return {
|
|
@@ -630,12 +645,14 @@ const FFI_GitHub_prim__listPullReviews = okit_list_pr_reviews;
|
|
|
630
645
|
const FFI_GitHub_prim__listPullRequests = okit_list_pull_requests;
|
|
631
646
|
const FFI_GitHub_prim__listPRsForBranch = okit_list_prs;
|
|
632
647
|
const FFI_GitHub_prim__listOrgMembers = okit_list_org_members;
|
|
648
|
+
const FFI_GitHub_prim__listMyTeams = okit_list_my_teams;
|
|
633
649
|
const FFI_GitHub_prim__getUser = okit_get_user;
|
|
634
650
|
const FFI_GitHub_prim__getSelf = okit_get_self;
|
|
635
651
|
const FFI_GitHub_prim__getRepoDefaultBranch = okit_get_repo_default_branch;
|
|
636
652
|
const FFI_GitHub_prim__createPR = okit_create_pr;
|
|
637
653
|
const FFI_GitHub_prim__createComment = okit_create_comment;
|
|
638
654
|
const FFI_GitHub_prim__addPullReviewers = okit_add_reviewers;
|
|
655
|
+
const FFI_Git_prim__userEmail = git_user_email;
|
|
639
656
|
const FFI_Git_prim__remoteURI = git_remote_uri;
|
|
640
657
|
const FFI_Git_prim__remoteTrackingBranch = git_remote_tracking_branch;
|
|
641
658
|
const FFI_Git_prim__pushNewBranch = git_push_new_branch;
|
|
@@ -670,7 +687,7 @@ function x24tcOpt_1($0) {
|
|
|
670
687
|
case 0: return {h: 0, a1: $0.a5};
|
|
671
688
|
default: {
|
|
672
689
|
const $18 = {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: $0.a5.a1.a3};
|
|
673
|
-
const $1c = Data_List_DeleteBy_deleteByx27($1f => $20 => Prelude_Basics_on($23 => $24 => $0.a1.a1.a1($23)($24),
|
|
690
|
+
const $1c = Data_List_DeleteBy_deleteByx27($1f => $20 => Prelude_Basics_on($23 => $24 => $0.a1.a1.a1($23)($24), csegen_474(), $1f, $20), $18, $0.a6);
|
|
674
691
|
switch($1c.a1.h) {
|
|
675
692
|
case 0: {
|
|
676
693
|
switch($0.a8) {
|
|
@@ -685,7 +702,7 @@ function x24tcOpt_1($0) {
|
|
|
685
702
|
}
|
|
686
703
|
default: {
|
|
687
704
|
const $6b = {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: $0.a5.a1.a3};
|
|
688
|
-
const $6f = Data_List_DeleteBy_deleteByx27($72 => $73 => Prelude_Basics_on($76 => $77 => $0.a1.a1.a1($76)($77),
|
|
705
|
+
const $6f = Data_List_DeleteBy_deleteByx27($72 => $73 => Prelude_Basics_on($76 => $77 => $0.a1.a1.a1($76)($77), csegen_474(), $72, $73), $6b, $0.a6);
|
|
689
706
|
switch($6f.a1.h) {
|
|
690
707
|
case 0: {
|
|
691
708
|
switch($0.a8) {
|
|
@@ -710,7 +727,7 @@ function x24tcOpt_1($0) {
|
|
|
710
727
|
case 0: return {h: 0, a1: $0.a5};
|
|
711
728
|
default: {
|
|
712
729
|
const $c2 = {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: $0.a5.a1.a3};
|
|
713
|
-
const $c6 = Data_List_DeleteBy_deleteByx27($c9 => $ca => Prelude_Basics_on($cd => $ce => $0.a1.a1.a1($cd)($ce),
|
|
730
|
+
const $c6 = Data_List_DeleteBy_deleteByx27($c9 => $ca => Prelude_Basics_on($cd => $ce => $0.a1.a1.a1($cd)($ce), csegen_474(), $c9, $ca), $c2, $0.a6);
|
|
714
731
|
switch($c6.a1.h) {
|
|
715
732
|
case 0: {
|
|
716
733
|
switch($0.a8) {
|
|
@@ -725,7 +742,7 @@ function x24tcOpt_1($0) {
|
|
|
725
742
|
}
|
|
726
743
|
default: {
|
|
727
744
|
const $115 = {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: $0.a5.a1.a3};
|
|
728
|
-
const $119 = Data_List_DeleteBy_deleteByx27($11c => $11d => Prelude_Basics_on($120 => $121 => $0.a1.a1.a1($120)($121),
|
|
745
|
+
const $119 = Data_List_DeleteBy_deleteByx27($11c => $11d => Prelude_Basics_on($120 => $121 => $0.a1.a1.a1($120)($121), csegen_474(), $11c, $11d), $115, $0.a6);
|
|
729
746
|
switch($119.a1.h) {
|
|
730
747
|
case 0: {
|
|
731
748
|
switch($0.a8) {
|
|
@@ -1503,6 +1520,10 @@ const csegen_111 = __lazy(function () {
|
|
|
1503
1520
|
return {a1: csegen_94(), a2: $3 => $4 => Prelude_EqOrd_compare_Ord_String($3, $4), a3: $9 => $a => Prelude_EqOrd_x3c_Ord_String($9, $a), a4: $f => $10 => Prelude_EqOrd_x3e_Ord_String($f, $10), a5: $15 => $16 => Prelude_EqOrd_x3cx3d_Ord_String($15, $16), a6: $1b => $1c => Prelude_EqOrd_x3ex3d_Ord_String($1b, $1c), a7: $21 => $22 => Prelude_EqOrd_max_Ord_String($21, $22), a8: $27 => $28 => Prelude_EqOrd_min_Ord_String($27, $28)};
|
|
1504
1521
|
});
|
|
1505
1522
|
|
|
1523
|
+
const csegen_112 = __lazy(function () {
|
|
1524
|
+
return $0 => Data_List_sort(csegen_111(), $0);
|
|
1525
|
+
});
|
|
1526
|
+
|
|
1506
1527
|
const csegen_113 = __lazy(function () {
|
|
1507
1528
|
return $0 => $1 => $2 => FFI_Concurrency_promiseAll(csegen_77(), $0, $1, $2);
|
|
1508
1529
|
});
|
|
@@ -1539,131 +1560,135 @@ const csegen_159 = __lazy(function () {
|
|
|
1539
1560
|
return $0 => $0.a1;
|
|
1540
1561
|
});
|
|
1541
1562
|
|
|
1542
|
-
const
|
|
1563
|
+
const csegen_161 = __lazy(function () {
|
|
1564
|
+
return Prelude_IO_putStrLn(csegen_21(), '');
|
|
1565
|
+
});
|
|
1566
|
+
|
|
1567
|
+
const csegen_167 = __lazy(function () {
|
|
1543
1568
|
return $0 => $1 => Prelude_Types_max_Ord_Nat($0, $1);
|
|
1544
1569
|
});
|
|
1545
1570
|
|
|
1546
|
-
const
|
|
1571
|
+
const csegen_169 = __lazy(function () {
|
|
1547
1572
|
return date => Text_PrettyPrint_Prettyprinter_Doc_indent(2, Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('earliest:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Data_Date_show_Show_Date(date)), a2: {h: 0}}}));
|
|
1548
1573
|
});
|
|
1549
1574
|
|
|
1550
|
-
const
|
|
1575
|
+
const csegen_193 = __lazy(function () {
|
|
1551
1576
|
return {a1: {a1: b => a => func => $2 => Control_Monad_ST_map_Functor_x28STx20x24sx29(func, $2), a2: a => $7 => $8 => $7, a3: b => a => $a => $b => $c => Control_Monad_ST_x3cx2ax3e_Applicative_x28STx20x24sx29($a, $b, $c)}, a2: b => a => $12 => $13 => $14 => Control_Monad_ST_x3ex3ex3d_Monad_x28STx20x24sx29($12, $13, $14), a3: a => $1a => $1b => Control_Monad_ST_join_Monad_x28STx20x24sx29($1a, $1b)};
|
|
1552
1577
|
});
|
|
1553
1578
|
|
|
1554
|
-
const
|
|
1579
|
+
const csegen_206 = __lazy(function () {
|
|
1555
1580
|
return $0 => $1 => Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29($0, $1);
|
|
1556
1581
|
});
|
|
1557
1582
|
|
|
1558
|
-
const
|
|
1583
|
+
const csegen_210 = __lazy(function () {
|
|
1559
1584
|
return {a1: $1 => $2 => Prelude_EqOrd_x3dx3d_Eq_Char($1, $2), a2: $7 => $8 => Prelude_EqOrd_x2fx3d_Eq_Char($7, $8)};
|
|
1560
1585
|
});
|
|
1561
1586
|
|
|
1562
|
-
const
|
|
1587
|
+
const csegen_226 = __lazy(function () {
|
|
1563
1588
|
return $0 => $1 => ({a1: $0, a2: $1});
|
|
1564
1589
|
});
|
|
1565
1590
|
|
|
1566
|
-
const
|
|
1591
|
+
const csegen_227 = __lazy(function () {
|
|
1567
1592
|
return $0 => $1 => $2 => $0($1($2));
|
|
1568
1593
|
});
|
|
1569
1594
|
|
|
1570
|
-
const
|
|
1595
|
+
const csegen_278 = __lazy(function () {
|
|
1571
1596
|
return b => a => $0 => $1 => Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29($0, $1);
|
|
1572
1597
|
});
|
|
1573
1598
|
|
|
1574
|
-
const
|
|
1599
|
+
const csegen_279 = __lazy(function () {
|
|
1575
1600
|
return a => $0 => Prelude_Types_join_Monad_x28Eitherx20x24ex29($0);
|
|
1576
1601
|
});
|
|
1577
1602
|
|
|
1578
|
-
const
|
|
1603
|
+
const csegen_280 = __lazy(function () {
|
|
1579
1604
|
return $0 => Data_Either_maybeToEither(() => 'Failed to parse JSON', Language_JSON_parse($0));
|
|
1580
1605
|
});
|
|
1581
1606
|
|
|
1582
|
-
const
|
|
1607
|
+
const csegen_283 = __lazy(function () {
|
|
1583
1608
|
return b => a => func => $0 => Text_Bounded_map_Functor_WithBounds(func, $0);
|
|
1584
1609
|
});
|
|
1585
1610
|
|
|
1586
|
-
const
|
|
1611
|
+
const csegen_294 = __lazy(function () {
|
|
1587
1612
|
return {a1: {a1: $2 => $3 => Prelude_EqOrd_x3dx3d_Eq_Int($2, $3), a2: $8 => $9 => Prelude_EqOrd_x2fx3d_Eq_Int($8, $9)}, a2: $e => $f => Prelude_EqOrd_compare_Ord_Int($e, $f), a3: $14 => $15 => Prelude_EqOrd_x3c_Ord_Int($14, $15), a4: $1a => $1b => Prelude_EqOrd_x3e_Ord_Int($1a, $1b), a5: $20 => $21 => Prelude_EqOrd_x3cx3d_Ord_Int($20, $21), a6: $26 => $27 => Prelude_EqOrd_x3ex3d_Ord_Int($26, $27), a7: $2c => $2d => Prelude_EqOrd_max_Ord_Int($2c, $2d), a8: $32 => $33 => Prelude_EqOrd_min_Ord_Int($32, $33)};
|
|
1588
1613
|
});
|
|
1589
1614
|
|
|
1590
|
-
const
|
|
1615
|
+
const csegen_302 = __lazy(function () {
|
|
1591
1616
|
return {a1: $1 => Language_JSON_Tokens_TokType_TokenKind_JSONTokenKind($1), a2: kind => $5 => Language_JSON_Tokens_tokValue_TokenKind_JSONTokenKind(kind, $5)};
|
|
1592
1617
|
});
|
|
1593
1618
|
|
|
1594
|
-
const
|
|
1619
|
+
const csegen_305 = __lazy(function () {
|
|
1595
1620
|
return {a1: $1 => $2 => Language_JSON_Tokens_x3dx3d_Eq_JSONTokenKind($1, $2), a2: $7 => $8 => Language_JSON_Tokens_x2fx3d_Eq_JSONTokenKind($7, $8)};
|
|
1596
1621
|
});
|
|
1597
1622
|
|
|
1598
|
-
const
|
|
1623
|
+
const csegen_341 = __lazy(function () {
|
|
1599
1624
|
return {a1: $1 => Language_JSON_String_Tokens_TokType_TokenKind_JSONStringTokenKind($1), a2: kind => $5 => Language_JSON_String_Tokens_tokValue_TokenKind_JSONStringTokenKind(kind, $5)};
|
|
1600
1625
|
});
|
|
1601
1626
|
|
|
1602
|
-
const
|
|
1627
|
+
const csegen_344 = __lazy(function () {
|
|
1603
1628
|
return {a1: $1 => $2 => Language_JSON_String_Tokens_x3dx3d_Eq_JSONStringTokenKind($1, $2), a2: $7 => $8 => Language_JSON_String_Tokens_x2fx3d_Eq_JSONStringTokenKind($7, $8)};
|
|
1604
1629
|
});
|
|
1605
1630
|
|
|
1606
|
-
const
|
|
1631
|
+
const csegen_360 = __lazy(function () {
|
|
1607
1632
|
return $0 => $1 => $2 => $3 => Text_Bounded_map_Functor_WithBounds($2, $3);
|
|
1608
1633
|
});
|
|
1609
1634
|
|
|
1610
|
-
const
|
|
1635
|
+
const csegen_362 = __lazy(function () {
|
|
1611
1636
|
return {a1: {a1: 'End of input', a2: {h: 0}}, a2: {h: 0}};
|
|
1612
1637
|
});
|
|
1613
1638
|
|
|
1614
|
-
const
|
|
1639
|
+
const csegen_405 = __lazy(function () {
|
|
1615
1640
|
return $0 => Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(2), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($0));
|
|
1616
1641
|
});
|
|
1617
1642
|
|
|
1618
|
-
const
|
|
1643
|
+
const csegen_407 = __lazy(function () {
|
|
1619
1644
|
return Prelude_IO_getLine(csegen_21());
|
|
1620
1645
|
});
|
|
1621
1646
|
|
|
1622
|
-
const
|
|
1647
|
+
const csegen_437 = __lazy(function () {
|
|
1623
1648
|
return $0 => Language_JSON_Accessors_array($3 => Data_PullRequest_parsePR($3), $0);
|
|
1624
1649
|
});
|
|
1625
1650
|
|
|
1626
|
-
const
|
|
1651
|
+
const csegen_457 = __lazy(function () {
|
|
1627
1652
|
return {a1: acc => elem => func => init => input => Prelude_Types_foldr_Foldable_x28Eitherx20x24ex29(func, init, input), a2: elem => acc => func => init => input => Prelude_Types_foldl_Foldable_x28Eitherx20x24ex29(func, init, input), a3: elem => $b => Prelude_Types_null_Foldable_x28Eitherx20x24ex29($b), a4: elem => acc => m => $f => funcM => init => input => Prelude_Types_foldlM_Foldable_x28Eitherx20x24ex29($f, funcM, init, input), a5: elem => $16 => Prelude_Types_toList_Foldable_x28Eitherx20x24ex29($16), a6: a => m => $1a => f => $1b => Prelude_Types_foldMap_Foldable_x28Eitherx20x24ex29($1a, f, $1b)};
|
|
1628
1653
|
});
|
|
1629
1654
|
|
|
1630
|
-
const
|
|
1655
|
+
const csegen_461 = __lazy(function () {
|
|
1631
1656
|
return b => a => f => $0 => $1 => $2 => Prelude_Types_traverse_Traversable_x28Eitherx20x24ex29($0, $1, $2);
|
|
1632
1657
|
});
|
|
1633
1658
|
|
|
1634
|
-
const
|
|
1659
|
+
const csegen_474 = __lazy(function () {
|
|
1635
1660
|
return $0 => $0.a1;
|
|
1636
1661
|
});
|
|
1637
1662
|
|
|
1638
|
-
const
|
|
1663
|
+
const csegen_482 = __lazy(function () {
|
|
1639
1664
|
return $0 => $1 => $2 => Data_Promise_either(csegen_115(), Data_PullRequest_parsePullRequestsString($0), $1, $2);
|
|
1640
1665
|
});
|
|
1641
1666
|
|
|
1642
|
-
const
|
|
1667
|
+
const csegen_483 = __lazy(function () {
|
|
1643
1668
|
return $0 => $1 => $2 => Data_Promise_either(csegen_115(), Data_User_parseUserString($0), $1, $2);
|
|
1644
1669
|
});
|
|
1645
1670
|
|
|
1646
|
-
const
|
|
1671
|
+
const csegen_516 = __lazy(function () {
|
|
1647
1672
|
return {a1: $1 => $2 => _add32s($1, $2), a2: $6 => $7 => _mul32s($6, $7), a3: $b => Number(_truncBigInt32($b))};
|
|
1648
1673
|
});
|
|
1649
1674
|
|
|
1650
|
-
const
|
|
1675
|
+
const csegen_531 = __lazy(function () {
|
|
1651
1676
|
return $0 => $0.a2;
|
|
1652
1677
|
});
|
|
1653
1678
|
|
|
1654
|
-
const
|
|
1679
|
+
const csegen_535 = __lazy(function () {
|
|
1655
1680
|
return $0 => $0.a1;
|
|
1656
1681
|
});
|
|
1657
1682
|
|
|
1658
|
-
const
|
|
1683
|
+
const csegen_538 = __lazy(function () {
|
|
1659
1684
|
return Prelude_Interfaces_x3cx24x3e(csegen_103(), $4 => Prelude_Cast_cast_Cast_Integer_Bits32($4), System_time(csegen_21()));
|
|
1660
1685
|
});
|
|
1661
1686
|
|
|
1662
|
-
const
|
|
1687
|
+
const csegen_542 = __lazy(function () {
|
|
1663
1688
|
return {a1: csegen_21(), a2: {a1: x => Data_Config_show_Show_Config(x), a2: d => x => Data_Config_showPrec_Show_Config(d, x)}};
|
|
1664
1689
|
});
|
|
1665
1690
|
|
|
1666
|
-
const
|
|
1691
|
+
const csegen_567 = __lazy(function () {
|
|
1667
1692
|
return {a1: {a1: '--checkout', a2: {a1: '-c', a2: {h: 0}}}};
|
|
1668
1693
|
});
|
|
1669
1694
|
|
|
@@ -1679,7 +1704,7 @@ function prim__mul_Integer($0, $1) {
|
|
|
1679
1704
|
return ($0*$1);
|
|
1680
1705
|
}
|
|
1681
1706
|
|
|
1682
|
-
function
|
|
1707
|
+
function Main_case__contribute_3289($0, $1, $2, $3, $4, $5, $6, $7, $8, $9, $a) {
|
|
1683
1708
|
const $c = Data_List_headx27(Data_List_drop($6, Prelude_Types_List_tailRecAppend($a.a1, $a.a2)));
|
|
1684
1709
|
switch($c.h) {
|
|
1685
1710
|
case 0: return $16 => $17 => Data_Promise_reject('No open PRs to review!', $16, $17);
|
|
@@ -1696,16 +1721,16 @@ function Main_case__contribute_3129($0, $1, $2, $3, $4, $5, $6, $7, $8, $9, $a)
|
|
|
1696
1721
|
}
|
|
1697
1722
|
}
|
|
1698
1723
|
|
|
1699
|
-
function
|
|
1724
|
+
function Main_n__6357_2891_putNameLn($0, $1, $2, $3) {
|
|
1700
1725
|
return Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_fillBreak(15, Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_italic(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($3.a1))), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_unsafeTextWithoutNewLines('-'), a2: {h: 0}}), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($3.a2), a2: {h: 0}}}});
|
|
1701
1726
|
}
|
|
1702
1727
|
|
|
1703
|
-
function
|
|
1728
|
+
function Main_n__6225_2781_partitionedArgs($0, $1, $2, $3, $4) {
|
|
1704
1729
|
const $5 = Data_List_partition($8 => Data_String_isPrefixOf('+', $8), $4);
|
|
1705
1730
|
return {a1: Prelude_Types_map_Functor_List($11 => Data_String_Extra_drop(1n, $11), $5.a1), a2: $5.a2};
|
|
1706
1731
|
}
|
|
1707
1732
|
|
|
1708
|
-
function
|
|
1733
|
+
function Main_n__6941_3487_parseSkipArg($0, $1) {
|
|
1709
1734
|
const $2 = Prelude_Types_fastUnpack($1);
|
|
1710
1735
|
switch($2.h) {
|
|
1711
1736
|
case undefined: {
|
|
@@ -1718,15 +1743,15 @@ function Main_n__6932_3327_parseSkipArg($0, $1) {
|
|
|
1718
1743
|
}
|
|
1719
1744
|
}
|
|
1720
1745
|
|
|
1721
|
-
function
|
|
1746
|
+
function Main_n__7140_3747_parsePg($0, $1, $2, $3, $4, $5) {
|
|
1722
1747
|
return Data_String_parsePositive(csegen_30(), $5);
|
|
1723
1748
|
}
|
|
1724
1749
|
|
|
1725
|
-
function
|
|
1750
|
+
function Main_n__7140_3746_parseLim($0, $1, $2, $3, $4) {
|
|
1726
1751
|
return Prelude_Interfaces_x3cx3dx3c(csegen_42(), x => Data_Fin_natToFin(x, Prelude_Types_prim__integerToNat(101n)), $f => Data_String_parsePositive(csegen_30(), $f));
|
|
1727
1752
|
}
|
|
1728
1753
|
|
|
1729
|
-
function
|
|
1754
|
+
function Main_n__6941_3486_parseCheckoutArg($0, $1) {
|
|
1730
1755
|
switch($1) {
|
|
1731
1756
|
case '-c': return {a1: {h: 0}};
|
|
1732
1757
|
case '--checkout': return {a1: {h: 0}};
|
|
@@ -1734,18 +1759,18 @@ function Main_n__6932_3326_parseCheckoutArg($0, $1) {
|
|
|
1734
1759
|
}
|
|
1735
1760
|
}
|
|
1736
1761
|
|
|
1737
|
-
function
|
|
1762
|
+
function Main_n__6498_3045_maybeDecorated($0, $1, $2, $3) {
|
|
1738
1763
|
switch(Data_Config_rf__colors($2)) {
|
|
1739
1764
|
case 1: return $3;
|
|
1740
1765
|
case 0: return Text_PrettyPrint_Prettyprinter_Doc_unAnnotate($3);
|
|
1741
1766
|
}
|
|
1742
1767
|
}
|
|
1743
1768
|
|
|
1744
|
-
function
|
|
1769
|
+
function Main_n__6357_2890_forkedUser($0, $1, $2, $3) {
|
|
1745
1770
|
return FFI_Concurrency_fork(csegen_21(), ('user --json '+$3));
|
|
1746
1771
|
}
|
|
1747
1772
|
|
|
1748
|
-
function
|
|
1773
|
+
function Main_n__6095_2643_configuredOpts($0, $1, $2) {
|
|
1749
1774
|
const $10 = $11 => {
|
|
1750
1775
|
switch($11.h) {
|
|
1751
1776
|
case 1: return $0.a1.a1.a2(undefined)(BashCompletion_opts($11.a1, $2, $1));
|
|
@@ -1806,7 +1831,7 @@ function Main_parseContributeArgs($0) {
|
|
|
1806
1831
|
switch($0.a2.a2.h) {
|
|
1807
1832
|
case undefined: return {h: 0, a1: 'contribute\'s arguments must be either -<num> to skip num PRs or --checkout (-c) to checkout the branch needing review.'};
|
|
1808
1833
|
default: {
|
|
1809
|
-
const $6 = Prelude_Types_traverse_Traversable_List(csegen_37(), $b => Main_x3cx7cx7cx3e(csegen_80(), $10 =>
|
|
1834
|
+
const $6 = Prelude_Types_traverse_Traversable_List(csegen_37(), $b => Main_x3cx7cx7cx3e(csegen_80(), $10 => Main_n__6941_3487_parseSkipArg($0, $10), $15 => Main_n__6941_3486_parseCheckoutArg($0, $15), $b), $0);
|
|
1810
1835
|
switch($6.h) {
|
|
1811
1836
|
case undefined: return {h: 1, a1: $6.a1};
|
|
1812
1837
|
case 0: return {h: 0, a1: 'contribute\'s arguments must be either -<num> to skip num PRs or --checkout (-c) to checkout the branch needing review.'};
|
|
@@ -1815,7 +1840,7 @@ function Main_parseContributeArgs($0) {
|
|
|
1815
1840
|
}
|
|
1816
1841
|
}
|
|
1817
1842
|
default: {
|
|
1818
|
-
const $1d = Prelude_Types_traverse_Traversable_List(csegen_37(), $22 => Main_x3cx7cx7cx3e(csegen_80(), $27 =>
|
|
1843
|
+
const $1d = Prelude_Types_traverse_Traversable_List(csegen_37(), $22 => Main_x3cx7cx7cx3e(csegen_80(), $27 => Main_n__6941_3487_parseSkipArg($0, $27), $2c => Main_n__6941_3486_parseCheckoutArg($0, $2c), $22), $0);
|
|
1819
1844
|
switch($1d.h) {
|
|
1820
1845
|
case undefined: return {h: 1, a1: $1d.a1};
|
|
1821
1846
|
case 0: return {h: 0, a1: 'contribute\'s arguments must be either -<num> to skip num PRs or --checkout (-c) to checkout the branch needing review.'};
|
|
@@ -1824,7 +1849,7 @@ function Main_parseContributeArgs($0) {
|
|
|
1824
1849
|
}
|
|
1825
1850
|
}
|
|
1826
1851
|
default: {
|
|
1827
|
-
const $34 = Prelude_Types_traverse_Traversable_List(csegen_37(), $39 => Main_x3cx7cx7cx3e(csegen_80(), $3e =>
|
|
1852
|
+
const $34 = Prelude_Types_traverse_Traversable_List(csegen_37(), $39 => Main_x3cx7cx7cx3e(csegen_80(), $3e => Main_n__6941_3487_parseSkipArg($0, $3e), $43 => Main_n__6941_3486_parseCheckoutArg($0, $43), $39), $0);
|
|
1828
1853
|
switch($34.h) {
|
|
1829
1854
|
case undefined: return {h: 1, a1: $34.a1};
|
|
1830
1855
|
case 0: return {h: 0, a1: 'contribute\'s arguments must be either -<num> to skip num PRs or --checkout (-c) to checkout the branch needing review.'};
|
|
@@ -1879,7 +1904,7 @@ function Main_main($0) {
|
|
|
1879
1904
|
}
|
|
1880
1905
|
|
|
1881
1906
|
function Main_listTeam($0, $1, $2, $3, $4) {
|
|
1882
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(),
|
|
1907
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), csegen_112(), FFI_GitHub_listTeamMembers($1, $0.a2, $2)), teamMemberLogins => $13 => $14 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3dx3cx3c(csegen_15(), csegen_113(), Prelude_Types_traverse_Traversable_List(csegen_9(), $21 => Main_n__6357_2890_forkedUser($1, $2, $0, $21), teamMemberLogins)), teamMembersJson => $29 => $2a => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Types_traverse_Traversable_List(csegen_9(), $31 => $32 => $33 => Data_Promise_either(csegen_115(), Data_User_parseUser($31), $32, $33), teamMembersJson), teamMembers => $3e => $3f => $40 => Data_Promise_liftIO_HasIO_Promise(Text_PrettyPrint_Prettyprinter_Render_Terminal_putDoc(Text_PrettyPrint_Prettyprinter_Doc_vsep(Prelude_Interfaces_x3cx24x3e(csegen_119(), $4b => Main_n__6357_2891_putNameLn($1, $2, $0, $4b), teamMembers))), $3e, $3f, $40), $29, $2a), $13, $14), $3, $4);
|
|
1883
1908
|
}
|
|
1884
1909
|
|
|
1885
1910
|
function Main_handleConfiguredArgs($0, $1, $2, $3) {
|
|
@@ -1929,7 +1954,7 @@ function Main_handleConfiguredArgs($0, $1, $2, $3) {
|
|
|
1929
1954
|
case undefined: {
|
|
1930
1955
|
switch($3.a2.a2.a2.a2.h) {
|
|
1931
1956
|
case 0: {
|
|
1932
|
-
const $8d = Prelude_Types_x3cx2ax3e_Applicative_Maybe(Prelude_Types_x3cx2ax3e_Applicative_Maybe({a1: $93 => $94 => ({a1: $93, a2: $94})},
|
|
1957
|
+
const $8d = Prelude_Types_x3cx2ax3e_Applicative_Maybe(Prelude_Types_x3cx2ax3e_Applicative_Maybe({a1: $93 => $94 => ({a1: $93, a2: $94})}, Main_n__7140_3746_parseLim($1, $2, $3.a2.a2.a1, $3.a2.a2.a2.a1, $0)($3.a2.a2.a1)), Main_n__7140_3747_parsePg($1, $2, $3.a2.a2.a1, $3.a2.a2.a2.a1, $0, $3.a2.a2.a2.a1));
|
|
1933
1958
|
return $a8 => $a9 => {
|
|
1934
1959
|
switch($8d.h) {
|
|
1935
1960
|
case undefined: return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listPullRequestsJsonStr($2, $0.a2, $0.a3, {h: 0}, $8d.a1.a1, $8d.a1.a2), pullsJsonStr => Prelude_IO_putStr(csegen_21(), pullsJsonStr), $a8, $a9);
|
|
@@ -1977,131 +2002,139 @@ function Main_handleConfiguredArgs($0, $1, $2, $3) {
|
|
|
1977
2002
|
default: return $18e => $18f => Data_Promise_reject(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Unexpected command line arguments: ', a2: {a1: Prelude_Show_show_Show_x28Listx20x24ax29(csegen_115(), $3), a2: {a1: '.', a2: {h: 0}}}}), $18e, $18f);
|
|
1978
2003
|
}
|
|
1979
2004
|
}
|
|
1980
|
-
case '
|
|
2005
|
+
case 'whoami': {
|
|
1981
2006
|
return $1a4 => $1a5 => {
|
|
1982
2007
|
switch($3.a2.h) {
|
|
1983
|
-
case 0: return
|
|
2008
|
+
case 0: return User_Me_printInfoOnSelf($0, $2, $1, $1a4, $1a5);
|
|
1984
2009
|
default: return Data_Promise_reject(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Unexpected command line arguments: ', a2: {a1: Prelude_Show_show_Show_x28Listx20x24ax29(csegen_115(), $3), a2: {a1: '.', a2: {h: 0}}}}), $1a4, $1a5);
|
|
1985
2010
|
}
|
|
1986
2011
|
};
|
|
1987
2012
|
}
|
|
2013
|
+
case 'sync': {
|
|
2014
|
+
return $1c1 => $1c2 => {
|
|
2015
|
+
switch($3.a2.h) {
|
|
2016
|
+
case 0: return Data_Promise_map_Functor_Promise($1c6 => (undefined), $1c8 => $1c9 => Config_syncConfig($0, $2, 1, $1c8, $1c9), $1c1, $1c2);
|
|
2017
|
+
default: return Data_Promise_reject(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Unexpected command line arguments: ', a2: {a1: Prelude_Show_show_Show_x28Listx20x24ax29(csegen_115(), $3), a2: {a1: '.', a2: {h: 0}}}}), $1c1, $1c2);
|
|
2018
|
+
}
|
|
2019
|
+
};
|
|
2020
|
+
}
|
|
1988
2021
|
case 'branch': {
|
|
1989
|
-
return $
|
|
2022
|
+
return $1e6 => {
|
|
1990
2023
|
switch($3.a2.h) {
|
|
1991
|
-
case 0: return $
|
|
1992
|
-
default: return $
|
|
2024
|
+
case 0: return $1e8 => Main_printCurrentBranchURI($0, $1, $1e6, $1e8);
|
|
2025
|
+
default: return $1ee => Data_Promise_reject(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Unexpected command line arguments: ', a2: {a1: Prelude_Show_show_Show_x28Listx20x24ax29(csegen_115(), $3), a2: {a1: '.', a2: {h: 0}}}}), $1e6, $1ee);
|
|
1993
2026
|
}
|
|
1994
2027
|
};
|
|
1995
2028
|
}
|
|
1996
2029
|
case 'pr': {
|
|
1997
|
-
return $
|
|
2030
|
+
return $203 => $204 => {
|
|
1998
2031
|
switch($3.a2.h) {
|
|
1999
2032
|
case 0: {
|
|
2000
|
-
const $
|
|
2001
|
-
switch($
|
|
2033
|
+
const $21f = $220 => {
|
|
2034
|
+
switch($220.h) {
|
|
2002
2035
|
case undefined: {
|
|
2003
|
-
switch($
|
|
2004
|
-
case 0: return Prelude_IO_putStrLn(csegen_21(), Data_PullRequest_rf__webURI($0, $
|
|
2036
|
+
switch($220.a1) {
|
|
2037
|
+
case 0: return Prelude_IO_putStrLn(csegen_21(), Data_PullRequest_rf__webURI($0, $220.a2));
|
|
2005
2038
|
default: return csegen_128();
|
|
2006
2039
|
}
|
|
2007
2040
|
}
|
|
2008
2041
|
default: return csegen_128();
|
|
2009
2042
|
}
|
|
2010
2043
|
};
|
|
2011
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise($
|
|
2044
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise($208 => $209 => Data_Promise_x3ex3ex3d_Monad_Promise($20c => $20d => FFI_Git_currentBranch($1, $20c, $20d), $213 => $214 => $215 => PullRequest_identifyOrCreatePR($0, $1, $2, $213, $214, $215), $208, $209), $21f, $203, $204);
|
|
2012
2045
|
}
|
|
2013
|
-
default: return Data_Promise_reject(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Unexpected command line arguments: ', a2: {a1: Prelude_Show_show_Show_x28Listx20x24ax29(csegen_115(), $3), a2: {a1: '.', a2: {h: 0}}}}), $
|
|
2046
|
+
default: return Data_Promise_reject(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Unexpected command line arguments: ', a2: {a1: Prelude_Show_show_Show_x28Listx20x24ax29(csegen_115(), $3), a2: {a1: '.', a2: {h: 0}}}}), $203, $204);
|
|
2014
2047
|
}
|
|
2015
2048
|
};
|
|
2016
2049
|
}
|
|
2017
2050
|
case 'reflect': {
|
|
2018
|
-
return $
|
|
2051
|
+
return $242 => $243 => {
|
|
2019
2052
|
switch($3.a2.h) {
|
|
2020
|
-
case 0: return User_Reflect_reflectOnSelf($0, $2, $
|
|
2021
|
-
default: return Data_Promise_reject(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Unexpected command line arguments: ', a2: {a1: Prelude_Show_show_Show_x28Listx20x24ax29(csegen_115(), $3), a2: {a1: '.', a2: {h: 0}}}}), $
|
|
2053
|
+
case 0: return User_Reflect_reflectOnSelf($0, $2, $242, $243);
|
|
2054
|
+
default: return Data_Promise_reject(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Unexpected command line arguments: ', a2: {a1: Prelude_Show_show_Show_x28Listx20x24ax29(csegen_115(), $3), a2: {a1: '.', a2: {h: 0}}}}), $242, $243);
|
|
2022
2055
|
}
|
|
2023
2056
|
};
|
|
2024
2057
|
}
|
|
2025
2058
|
case 'config': {
|
|
2026
2059
|
switch($3.a2.h) {
|
|
2027
2060
|
case undefined: {
|
|
2028
|
-
return $
|
|
2061
|
+
return $25f => {
|
|
2029
2062
|
switch($3.a2.a2.h) {
|
|
2030
|
-
case 0: return $
|
|
2063
|
+
case 0: return $261 => Data_Promise_x3ex3ex3d_Monad_Promise($264 => Config_getConfig($0, $3.a2.a1, $264), value => Prelude_IO_putStrLn(csegen_21(), value), $25f, $261);
|
|
2031
2064
|
case undefined: {
|
|
2032
|
-
return $
|
|
2065
|
+
return $270 => {
|
|
2033
2066
|
switch($3.a2.a2.a2.h) {
|
|
2034
|
-
case 0: return Data_Promise_map_Functor_Promise($
|
|
2035
|
-
default: return Data_Promise_reject(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Unexpected command line arguments: ', a2: {a1: Prelude_Show_show_Show_x28Listx20x24ax29(csegen_115(), $3), a2: {a1: '.', a2: {h: 0}}}}), $
|
|
2067
|
+
case 0: return Data_Promise_map_Functor_Promise($274 => (undefined), Config_setConfig($0, $3.a2.a1, $3.a2.a2.a1), $25f, $270);
|
|
2068
|
+
default: return Data_Promise_reject(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Unexpected command line arguments: ', a2: {a1: Prelude_Show_show_Show_x28Listx20x24ax29(csegen_115(), $3), a2: {a1: '.', a2: {h: 0}}}}), $25f, $270);
|
|
2036
2069
|
}
|
|
2037
2070
|
};
|
|
2038
2071
|
}
|
|
2039
|
-
default: return $
|
|
2072
|
+
default: return $290 => Data_Promise_reject(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Unexpected command line arguments: ', a2: {a1: Prelude_Show_show_Show_x28Listx20x24ax29(csegen_115(), $3), a2: {a1: '.', a2: {h: 0}}}}), $25f, $290);
|
|
2040
2073
|
}
|
|
2041
2074
|
};
|
|
2042
2075
|
}
|
|
2043
|
-
default: return $
|
|
2076
|
+
default: return $2a5 => $2a6 => Data_Promise_reject(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Unexpected command line arguments: ', a2: {a1: Prelude_Show_show_Show_x28Listx20x24ax29(csegen_115(), $3), a2: {a1: '.', a2: {h: 0}}}}), $2a5, $2a6);
|
|
2044
2077
|
}
|
|
2045
2078
|
}
|
|
2046
2079
|
case 'contribute': {
|
|
2047
|
-
const $
|
|
2048
|
-
switch($
|
|
2049
|
-
case 1: return $
|
|
2050
|
-
case 0: return Main_exitError(csegen_21(), $
|
|
2080
|
+
const $2bb = Main_parseContributeArgs($3.a2);
|
|
2081
|
+
switch($2bb.h) {
|
|
2082
|
+
case 1: return $2be => $2bf => Main_contribute($0, $1, $2, $2bb.a1, $2be, $2bf);
|
|
2083
|
+
case 0: return Main_exitError(csegen_21(), $2bb.a1);
|
|
2051
2084
|
}
|
|
2052
2085
|
}
|
|
2053
2086
|
case 'list': {
|
|
2054
2087
|
switch($3.a2.h) {
|
|
2055
|
-
case 0: return $
|
|
2088
|
+
case 0: return $2cc => $2cd => Data_Promise_reject('The list command expects the name of a GitHub Team as an argument.', $2cc, $2cd);
|
|
2056
2089
|
case undefined: {
|
|
2057
|
-
return $
|
|
2090
|
+
return $2d2 => {
|
|
2058
2091
|
switch($3.a2.a2.h) {
|
|
2059
|
-
case 0: return $
|
|
2060
|
-
default: return $
|
|
2092
|
+
case 0: return $2d4 => Main_listTeam($0, $2, $3.a2.a1, $2d2, $2d4);
|
|
2093
|
+
default: return $2db => Data_Promise_reject(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Unexpected command line arguments: ', a2: {a1: Prelude_Show_show_Show_x28Listx20x24ax29(csegen_115(), $3), a2: {a1: '.', a2: {h: 0}}}}), $2d2, $2db);
|
|
2061
2094
|
}
|
|
2062
2095
|
};
|
|
2063
2096
|
}
|
|
2064
|
-
default: return $
|
|
2097
|
+
default: return $2f0 => $2f1 => Data_Promise_reject(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Unexpected command line arguments: ', a2: {a1: Prelude_Show_show_Show_x28Listx20x24ax29(csegen_115(), $3), a2: {a1: '.', a2: {h: 0}}}}), $2f0, $2f1);
|
|
2065
2098
|
}
|
|
2066
2099
|
}
|
|
2067
2100
|
case 'graph': {
|
|
2068
2101
|
switch($3.a2.h) {
|
|
2069
|
-
case 0: return $
|
|
2102
|
+
case 0: return $307 => $308 => Data_Promise_reject('The graph command expects the name of a GitHub Team as an argument.', $307, $308);
|
|
2070
2103
|
case undefined: {
|
|
2071
|
-
return $
|
|
2104
|
+
return $30d => {
|
|
2072
2105
|
switch($3.a2.a2.h) {
|
|
2073
|
-
case 0: return $
|
|
2074
|
-
default: return $
|
|
2106
|
+
case 0: return $30f => Main_graphTeam($0, $2, $3.a2.a1, $30d, $30f);
|
|
2107
|
+
default: return $316 => Data_Promise_reject(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Unexpected command line arguments: ', a2: {a1: Prelude_Show_show_Show_x28Listx20x24ax29(csegen_115(), $3), a2: {a1: '.', a2: {h: 0}}}}), $30d, $316);
|
|
2075
2108
|
}
|
|
2076
2109
|
};
|
|
2077
2110
|
}
|
|
2078
|
-
default: return $
|
|
2111
|
+
default: return $32b => $32c => Data_Promise_reject(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Unexpected command line arguments: ', a2: {a1: Prelude_Show_show_Show_x28Listx20x24ax29(csegen_115(), $3), a2: {a1: '.', a2: {h: 0}}}}), $32b, $32c);
|
|
2079
2112
|
}
|
|
2080
2113
|
}
|
|
2081
2114
|
case 'assign': {
|
|
2082
2115
|
switch($3.a2.h) {
|
|
2083
|
-
case 0: return $
|
|
2116
|
+
case 0: return $342 => $343 => Data_Promise_reject('The assign commaand expects one or more names of GitHub Teams or Users as arguments.', $342, $343);
|
|
2084
2117
|
case undefined: {
|
|
2085
2118
|
switch($3.a2.a1) {
|
|
2086
2119
|
case '--dry': {
|
|
2087
|
-
return $
|
|
2120
|
+
return $349 => {
|
|
2088
2121
|
switch($3.a2.a2.h) {
|
|
2089
|
-
case 0: return $
|
|
2090
|
-
case undefined: return $
|
|
2091
|
-
default: return $
|
|
2122
|
+
case 0: return $34b => Data_Promise_reject('The assign commaand expects one or more names of GitHub Teams or Users as arguments.', $349, $34b);
|
|
2123
|
+
case undefined: return $350 => Main_assign($0, $1, $2, {a1: $3.a2.a2.a1, a2: $3.a2.a2.a2}, 1, $349, $350);
|
|
2124
|
+
default: return $35b => Main_assign($0, $1, $2, {a1: $3.a2.a1, a2: $3.a2.a2}, 0, $349, $35b);
|
|
2092
2125
|
}
|
|
2093
2126
|
};
|
|
2094
2127
|
}
|
|
2095
|
-
default: return $
|
|
2128
|
+
default: return $366 => $367 => Main_assign($0, $1, $2, {a1: $3.a2.a1, a2: $3.a2.a2}, 0, $366, $367);
|
|
2096
2129
|
}
|
|
2097
2130
|
}
|
|
2098
|
-
default: return $
|
|
2131
|
+
default: return $372 => $373 => Data_Promise_reject(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Unexpected command line arguments: ', a2: {a1: Prelude_Show_show_Show_x28Listx20x24ax29(csegen_115(), $3), a2: {a1: '.', a2: {h: 0}}}}), $372, $373);
|
|
2099
2132
|
}
|
|
2100
2133
|
}
|
|
2101
|
-
default: return $
|
|
2134
|
+
default: return $388 => $389 => Data_Promise_reject(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Unexpected command line arguments: ', a2: {a1: Prelude_Show_show_Show_x28Listx20x24ax29(csegen_115(), $3), a2: {a1: '.', a2: {h: 0}}}}), $388, $389);
|
|
2102
2135
|
}
|
|
2103
2136
|
}
|
|
2104
|
-
default: return $
|
|
2137
|
+
default: return $39e => $39f => Data_Promise_reject(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Unexpected command line arguments: ', a2: {a1: Prelude_Show_show_Show_x28Listx20x24ax29(csegen_115(), $3), a2: {a1: '.', a2: {h: 0}}}}), $39e, $39f);
|
|
2105
2138
|
}
|
|
2106
2139
|
}
|
|
2107
2140
|
|
|
@@ -2139,7 +2172,7 @@ function Main_handleArgs($0, $1, $2, $3, $4) {
|
|
|
2139
2172
|
}
|
|
2140
2173
|
|
|
2141
2174
|
function Main_graphTeam($0, $1, $2, $3, $4) {
|
|
2142
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listTeamMembers($1, $0.a2, $2), teamMemberLogins => $d => $e => Data_Promise_x3ex3ex3d_Monad_Promise($11 => $12 => PullRequest_listReviewers($0, $1, 4n, csegen_134(), $11, $12), $1c => $1d => $1e => $1f => Data_Promise_liftIO_HasIO_Promise(Text_PrettyPrint_Prettyprinter_Render_Terminal_putDoc(
|
|
2175
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listTeamMembers($1, $0.a2, $2), teamMemberLogins => $d => $e => Data_Promise_x3ex3ex3d_Monad_Promise($11 => $12 => PullRequest_listReviewers($0, $1, 4n, csegen_134(), $11, $12), $1c => $1d => $1e => $1f => Data_Promise_liftIO_HasIO_Promise(Text_PrettyPrint_Prettyprinter_Render_Terminal_putDoc(Main_n__6498_3045_maybeDecorated($1, $2, $0, Reviewer_reviewsGraph(csegen_111(), {a1: ann => $2f => Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($2f), a2: ann => $33 => $34 => Text_PrettyPrint_Prettyprinter_Doc_prettyPrec_Pretty_String($33, $34)}, $1c.a2, $1c.a1, teamMemberLogins))), $1d, $1e, $1f), $d, $e), $3, $4);
|
|
2143
2176
|
}
|
|
2144
2177
|
|
|
2145
2178
|
function Main_exitError($0, $1) {
|
|
@@ -2179,7 +2212,7 @@ function Main_contribute($0, $1, $2, $3, $4, $5) {
|
|
|
2179
2212
|
};
|
|
2180
2213
|
const $35 = Prelude_Types_List_filter($37, openPrs);
|
|
2181
2214
|
const $3e = Data_List_partition($41 => Data_PullRequest_isRequestedReviewer(myLogin, $41), $35);
|
|
2182
|
-
return
|
|
2215
|
+
return Main_case__contribute_3289($1, $2, $3, $0, openPrs, myLogin, $21, $2f, $35, $3e, Prelude_Interfaces_mapHom({a1: d => b => c => a => $55 => $56 => $57 => ({a1: $55($57.a1), a2: $56($57.a2)}), a2: b => c => a => $60 => $61 => ({a1: $60($61.a1), a2: $61.a2}), a3: a => d => b => $68 => $69 => ({a1: $69.a1, a2: $68($69.a2)})}, $70 => Data_List_sortBy($73 => $74 => Prelude_Basics_on(csegen_141(), $79 => $79.a2, $73, $74), $70), $3e));
|
|
2183
2216
|
};
|
|
2184
2217
|
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), csegen_139(), FFI_GitHub_getSelf($2)), $20, $14, $15);
|
|
2185
2218
|
};
|
|
@@ -2187,13 +2220,13 @@ function Main_contribute($0, $1, $2, $3, $4, $5) {
|
|
|
2187
2220
|
}
|
|
2188
2221
|
|
|
2189
2222
|
function Main_bashCompletion($0, $1, $2) {
|
|
2190
|
-
const $3 = Prelude_Types_maybe(() =>
|
|
2223
|
+
const $3 = Prelude_Types_maybe(() => Main_n__6095_2643_configuredOpts($0, $2, $1), () => $b => $0.a1.a1.a2(undefined)($b), BashCompletion_cmdOpts($1, $2));
|
|
2191
2224
|
return $0.a1.a2(undefined)(undefined)($3)($21 => Prelude_IO_putStr($0, Data_String_fastUnlines($21)));
|
|
2192
2225
|
}
|
|
2193
2226
|
|
|
2194
2227
|
function Main_assign($0, $1, $2, $3, $4, $5, $6) {
|
|
2195
2228
|
return Data_Promise_x3ex3ex3d_Monad_Promise($9 => $a => Data_Promise_x3ex3ex3d_Monad_Promise($d => $e => FFI_Git_currentBranch($1, $d, $e), $14 => $15 => $16 => PullRequest_identifyOrCreatePR($0, $1, $2, $14, $15, $16), $9, $a), $21 => $22 => $24 => {
|
|
2196
|
-
const $25 =
|
|
2229
|
+
const $25 = Main_n__6225_2781_partitionedArgs($0, $1, $2, $4, $3);
|
|
2197
2230
|
return PullRequest_requestReviewers($0, $2, $21.a2, $25.a2, $25.a1, $4, $22, $24);
|
|
2198
2231
|
}, $5, $6);
|
|
2199
2232
|
}
|
|
@@ -2207,10 +2240,17 @@ function User_Reflect_case__casex20blockx20inx20reflectOnSelf_2238($0, $1, $2, $
|
|
|
2207
2240
|
return Prelude_IO_putStrLn(csegen_21(), Util_renderString($0, User_Reflect_print(Prelude_Types_String_length(User_Reflect_intro()), Prelude_Types_List_lengthTR($4), Prelude_Types_List_lengthTR($9.a1), Prelude_Types_List_lengthTR($9.a2), Prelude_Types_List_lengthTR($8), Prelude_Types_List_lengthTR($7), $5, $b.a1, $b.a2)));
|
|
2208
2241
|
}
|
|
2209
2242
|
|
|
2210
|
-
function
|
|
2243
|
+
function User_Reflect_n__5346_1432_ital($0, $1) {
|
|
2211
2244
|
return Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_italic(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($1));
|
|
2212
2245
|
}
|
|
2213
2246
|
|
|
2247
|
+
function User_Me_n__6258_2372_handleUnsetEmail($0, $1, $2, $3) {
|
|
2248
|
+
switch($3) {
|
|
2249
|
+
case '': return 'Not set';
|
|
2250
|
+
default: return $3;
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
|
|
2214
2254
|
const User_Reflect_rightTitle = __lazy(function () {
|
|
2215
2255
|
return 'authored';
|
|
2216
2256
|
});
|
|
@@ -2239,6 +2279,10 @@ function User_Reflect_reflectOnSelf($0, $1, $2, $3) {
|
|
|
2239
2279
|
return Data_Promise_x3ex3ex3d_Monad_Promise(PullRequest_listPartitionedPRs($0, $1, 4n, User_Reflect_prCount()), $c, $2, $3);
|
|
2240
2280
|
}
|
|
2241
2281
|
|
|
2282
|
+
function User_Me_printInfoOnSelf($0, $1, $2, $3, $4) {
|
|
2283
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $b => User_Me_n__6258_2372_handleUnsetEmail($0, $1, $2, $b), $12 => $13 => FFI_Git_userEmail($2, $12, $13)), gitEmail => $19 => $1a => Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_getSelf($1), githubUser => $20 => $21 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), csegen_112(), FFI_GitHub_listMyTeams($1)), githubTeams => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Git Email: ', a2: {a1: gitEmail, a2: {h: 0}}})), () => Prelude_Interfaces_x3ex3e(csegen_15(), csegen_161(), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'GitHub Name: ', a2: {a1: githubUser.a2, a2: {h: 0}}})), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'GitHub Login: ', a2: {a1: githubUser.a1, a2: {h: 0}}})), () => Prelude_Interfaces_x3ex3e(csegen_15(), csegen_161(), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), 'GitHub Teams:'), () => Prelude_Interfaces_traverse_(csegen_9(), csegen_77(), $83 => Prelude_IO_putStrLn(csegen_21(), $83), githubTeams))))))), $20, $21), $19, $1a), $3, $4);
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2242
2286
|
function User_Reflect_print($0, $1, $2, $3, $4, $5, $6, $7, $8) {
|
|
2243
2287
|
return Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: User_Reflect_graph($0, $1, $2, $3, $4, $5), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: User_Reflect_details($0, $1, $2, $3, $4, $5, $6, $7, $8), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {h: 0}}}}}});
|
|
2244
2288
|
}
|
|
@@ -2256,14 +2300,14 @@ const User_Reflect_intro = __lazy(function () {
|
|
|
2256
2300
|
});
|
|
2257
2301
|
|
|
2258
2302
|
function User_Reflect_header($0) {
|
|
2259
|
-
return Text_PrettyPrint_Prettyprinter_Doc_indent(Prelude_Cast_cast_Cast_Nat_Int($0), Text_PrettyPrint_Prettyprinter_Doc_hsep({a1:
|
|
2303
|
+
return Text_PrettyPrint_Prettyprinter_Doc_indent(Prelude_Cast_cast_Cast_Nat_Int($0), Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: User_Reflect_n__5346_1432_ital($0, User_Reflect_leftTitle()), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(' '), a2: {a1: User_Reflect_n__5346_1432_ital($0, User_Reflect_rightTitle()), a2: {h: 0}}}}));
|
|
2260
2304
|
}
|
|
2261
2305
|
|
|
2262
2306
|
function User_Reflect_graph($0, $1, $2, $3, $4, $5) {
|
|
2263
2307
|
const $6 = ($2+$3);
|
|
2264
2308
|
const $9 = ($5+$4);
|
|
2265
|
-
const $c = Prelude_Types_foldr_Foldable_List(
|
|
2266
|
-
const $1b = Prelude_Types_foldr_Foldable_List(
|
|
2309
|
+
const $c = Prelude_Types_foldr_Foldable_List(csegen_167(), Prelude_Types_String_length(User_Reflect_leftTitle()), {a1: ($6+$1), a2: {a1: $9, a2: {h: 0}}});
|
|
2310
|
+
const $1b = Prelude_Types_foldr_Foldable_List(csegen_167(), Prelude_Types_String_length(User_Reflect_rightTitle()), {a1: $6, a2: {a1: $9, a2: {h: 0}}});
|
|
2267
2311
|
const $28 = (($c+$1b)+3n);
|
|
2268
2312
|
const $2d = ((Prelude_Cast_cast_Cast_Nat_Double($0)/2.0)-(Prelude_Cast_cast_Cast_Nat_Double($28)/2.0));
|
|
2269
2313
|
const $38 = (Prelude_Cast_cast_Cast_Double_Nat($2d)+Prelude_Types_prim__integerToNat(($c-Prelude_Types_String_length(User_Reflect_leftTitle()))));
|
|
@@ -2272,7 +2316,7 @@ function User_Reflect_graph($0, $1, $2, $3, $4, $5) {
|
|
|
2272
2316
|
}
|
|
2273
2317
|
|
|
2274
2318
|
function User_Reflect_details($0, $1, $2, $3, $4, $5, $6, $7, $8) {
|
|
2275
|
-
return Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(User_Reflect_intro()), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_underline(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('Requested Reviews:')), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_indent(2, Text_PrettyPrint_Prettyprinter_Doc_vsep(Data_List_catMaybes({a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('unreviewed:')}, a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_indent(2, Text_PrettyPrint_Prettyprinter_Doc_vsep(Data_List_catMaybes({a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('open:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(3), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Nat($2)), a2: {h: 0}}})}, a2: {a1: Prelude_Interfaces_x3cx26x3e(csegen_18(), $8,
|
|
2319
|
+
return Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(User_Reflect_intro()), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_underline(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('Requested Reviews:')), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_indent(2, Text_PrettyPrint_Prettyprinter_Doc_vsep(Data_List_catMaybes({a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('unreviewed:')}, a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_indent(2, Text_PrettyPrint_Prettyprinter_Doc_vsep(Data_List_catMaybes({a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('open:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(3), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Nat($2)), a2: {h: 0}}})}, a2: {a1: Prelude_Interfaces_x3cx26x3e(csegen_18(), $8, csegen_169()), a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('closed:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(1), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Nat($3)), a2: {h: 0}}})}, a2: {h: 0}}}})))}, a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('reviews*:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(2), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Nat($1)), a2: {h: 0}}})}, a2: {a1: Prelude_Interfaces_x3cx26x3e(csegen_18(), $6, date => Text_PrettyPrint_Prettyprinter_Doc_indent(2, Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('most recent:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Data_Date_show_Show_Date(date)), a2: {h: 0}}}))), a2: {h: 0}}}}}))), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_underline(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('Authored Pulls:')), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_indent(2, Text_PrettyPrint_Prettyprinter_Doc_vsep(Data_List_catMaybes({a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('open:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(3), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Nat($5)), a2: {h: 0}}})}, a2: {a1: Prelude_Interfaces_x3cx26x3e(csegen_18(), $7, csegen_169()), a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('closed:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(2), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Nat($4)), a2: {h: 0}}})}, a2: {h: 0}}}}))), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_italic(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: '*review count (not PR count) of most recent ', a2: {a1: Data_Fin_show_Show_x28Finx20x24nx29(User_Reflect_reviewDetailsCount()), a2: {a1: ' PRs.', a2: {h: 0}}}}))), a2: {h: 0}}}}}}}}}});
|
|
2276
2320
|
}
|
|
2277
2321
|
|
|
2278
2322
|
function User_Reflect_chart($0, $1, $2, $3, $4, $5, $6) {
|
|
@@ -2391,7 +2435,7 @@ function Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5084_push($0, $1
|
|
|
2391
2435
|
function Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5086_pop($0, $1, $2) {
|
|
2392
2436
|
const $9 = $a => {
|
|
2393
2437
|
switch($a.h) {
|
|
2394
|
-
case undefined: return Prelude_Interfaces_x3ex3e(
|
|
2438
|
+
case undefined: return Prelude_Interfaces_x3ex3e(csegen_193(), $10 => ($1.value=$a.a2), () => $16 => ({a1: $a.a1}));
|
|
2395
2439
|
case 0: return $18 => ({h: 0});
|
|
2396
2440
|
}
|
|
2397
2441
|
};
|
|
@@ -2411,16 +2455,16 @@ function Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5085_peek($0, $1
|
|
|
2411
2455
|
function Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5088_go($0, $1, $2, $3) {
|
|
2412
2456
|
switch($3.h) {
|
|
2413
2457
|
case 0: return $5 => (undefined);
|
|
2414
|
-
case 1: return Prelude_Interfaces_x3ex3e(
|
|
2415
|
-
case 2: return Prelude_Interfaces_x3ex3e(
|
|
2416
|
-
case 3: return Prelude_Interfaces_x3ex3e(
|
|
2458
|
+
case 1: return Prelude_Interfaces_x3ex3e(csegen_193(), $a => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5087_writeOutput($0, $2, Data_String_singleton($3.a1), $a), () => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5088_go($0, $1, $2, $3.a2()));
|
|
2459
|
+
case 2: return Prelude_Interfaces_x3ex3e(csegen_193(), $1d => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5087_writeOutput($0, $2, $3.a2, $1d), () => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5088_go($0, $1, $2, $3.a3()));
|
|
2460
|
+
case 3: return Prelude_Interfaces_x3ex3e(csegen_193(), $2e => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5087_writeOutput($0, $2, (Data_String_singleton('\n')+Text_PrettyPrint_Prettyprinter_Doc_textSpaces($3.a1)), $2e), () => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5088_go($0, $1, $2, $3.a2));
|
|
2417
2461
|
case 4: {
|
|
2418
2462
|
return $40 => {
|
|
2419
2463
|
const $48 = $49 => {
|
|
2420
2464
|
switch($49.h) {
|
|
2421
2465
|
case undefined: {
|
|
2422
2466
|
const $4b = Prelude_Types_List_tailRecAppend($3.a1, $49.a1);
|
|
2423
|
-
return Prelude_Interfaces_x3ex3e(
|
|
2467
|
+
return Prelude_Interfaces_x3ex3e(csegen_193(), $53 => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5084_push($0, $1, $4b, $53), () => Prelude_Interfaces_x3ex3e(csegen_193(), $5e => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5087_writeOutput($0, $2, Control_ANSI_SGR_escapeSGR($4b), $5e), () => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5088_go($0, $1, $2, $3.a2)));
|
|
2424
2468
|
}
|
|
2425
2469
|
case 0: return $6c => ($1.value={h: 0});
|
|
2426
2470
|
}
|
|
@@ -2433,7 +2477,7 @@ function Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5088_go($0, $1,
|
|
|
2433
2477
|
const $7a = _ => $7b => {
|
|
2434
2478
|
const $83 = $84 => {
|
|
2435
2479
|
switch($84.h) {
|
|
2436
|
-
case undefined: return Prelude_Interfaces_x3ex3e(
|
|
2480
|
+
case undefined: return Prelude_Interfaces_x3ex3e(csegen_193(), $8a => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5087_writeOutput($0, $2, Control_ANSI_SGR_escapeSGR({a1: {h: 0}, a2: $84.a1}), $8a), () => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5088_go($0, $1, $2, $3.a1));
|
|
2437
2481
|
case 0: return $9a => ($1.value={h: 0});
|
|
2438
2482
|
}
|
|
2439
2483
|
};
|
|
@@ -2450,7 +2494,7 @@ const Text_PrettyPrint_Prettyprinter_Render_Terminal_underline = __lazy(function
|
|
|
2450
2494
|
});
|
|
2451
2495
|
|
|
2452
2496
|
function Text_PrettyPrint_Prettyprinter_Render_Terminal_renderString($0) {
|
|
2453
|
-
return Data_Maybe_fromMaybe(() => '<internal pretty printing error>', Control_Monad_ST_runST($6 => $7 => Control_Monad_ST_x3ex3ex3d_Monad_x28STx20x24sx29($a => Control_Monad_ST_newSTRef({a1: {h: 0}, a2: {h: 0}}, $a), styleStackRef => $11 => Control_Monad_ST_x3ex3ex3d_Monad_x28STx20x24sx29($14 => Control_Monad_ST_newSTRef('', $14), outputRef => Prelude_Interfaces_x3ex3e(
|
|
2497
|
+
return Data_Maybe_fromMaybe(() => '<internal pretty printing error>', Control_Monad_ST_runST($6 => $7 => Control_Monad_ST_x3ex3ex3d_Monad_x28STx20x24sx29($a => Control_Monad_ST_newSTRef({a1: {h: 0}, a2: {h: 0}}, $a), styleStackRef => $11 => Control_Monad_ST_x3ex3ex3d_Monad_x28STx20x24sx29($14 => Control_Monad_ST_newSTRef('', $14), outputRef => Prelude_Interfaces_x3ex3e(csegen_193(), Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5088_go($0, styleStackRef, outputRef, $0), () => $23 => {
|
|
2454
2498
|
const $2a = $2b => {
|
|
2455
2499
|
switch($2b.h) {
|
|
2456
2500
|
case 0: return $2d => ({h: 0});
|
|
@@ -2694,7 +2738,7 @@ function Text_PrettyPrint_Prettyprinter_Doc_hsep($0) {
|
|
|
2694
2738
|
}
|
|
2695
2739
|
|
|
2696
2740
|
function Text_PrettyPrint_Prettyprinter_Doc_hcat($0) {
|
|
2697
|
-
return Text_PrettyPrint_Prettyprinter_Doc_concatWith(
|
|
2741
|
+
return Text_PrettyPrint_Prettyprinter_Doc_concatWith(csegen_206(), $0);
|
|
2698
2742
|
}
|
|
2699
2743
|
|
|
2700
2744
|
function Text_PrettyPrint_Prettyprinter_Doc_hang($0, $1) {
|
|
@@ -2739,10 +2783,10 @@ function Text_PrettyPrint_Prettyprinter_Doc_encloseSep($0, $1, $2, $3) {
|
|
|
2739
2783
|
case undefined: {
|
|
2740
2784
|
switch($3.a2.h) {
|
|
2741
2785
|
case 0: return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29($0, $3.a1), $1);
|
|
2742
|
-
default: return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(Text_PrettyPrint_Prettyprinter_Doc_cat(Data_List_zipWith_Zippable_List(
|
|
2786
|
+
default: return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(Text_PrettyPrint_Prettyprinter_Doc_cat(Data_List_zipWith_Zippable_List(csegen_206(), {a1: $0, a2: Data_List_replicate(Prelude_Types_prim__integerToNat((Prelude_Types_List_lengthTR($3)-1n)), $2)}, $3)), $1);
|
|
2743
2787
|
}
|
|
2744
2788
|
}
|
|
2745
|
-
default: return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(Text_PrettyPrint_Prettyprinter_Doc_cat(Data_List_zipWith_Zippable_List(
|
|
2789
|
+
default: return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(Text_PrettyPrint_Prettyprinter_Doc_cat(Data_List_zipWith_Zippable_List(csegen_206(), {a1: $0, a2: Data_List_replicate(Prelude_Types_prim__integerToNat((Prelude_Types_List_lengthTR($3)-1n)), $2)}, $3)), $1);
|
|
2746
2790
|
}
|
|
2747
2791
|
}
|
|
2748
2792
|
|
|
@@ -2969,11 +3013,11 @@ function Data_String_lines($0) {
|
|
|
2969
3013
|
}
|
|
2970
3014
|
|
|
2971
3015
|
function Data_String_isSuffixOf($0, $1) {
|
|
2972
|
-
return Data_List_isSuffixOf(
|
|
3016
|
+
return Data_List_isSuffixOf(csegen_210(), Prelude_Types_fastUnpack($0), Prelude_Types_fastUnpack($1));
|
|
2973
3017
|
}
|
|
2974
3018
|
|
|
2975
3019
|
function Data_String_isPrefixOf($0, $1) {
|
|
2976
|
-
return Data_List_isPrefixOf(
|
|
3020
|
+
return Data_List_isPrefixOf(csegen_210(), Prelude_Types_fastUnpack($0), Prelude_Types_fastUnpack($1));
|
|
2977
3021
|
}
|
|
2978
3022
|
|
|
2979
3023
|
function Data_String_indent($0, $1) {
|
|
@@ -3078,7 +3122,7 @@ function Prelude_Types_n__9361_8543_hexChars($0) {
|
|
|
3078
3122
|
function Prelude_Types_traverse_Traversable_List($0, $1, $2) {
|
|
3079
3123
|
switch($2.h) {
|
|
3080
3124
|
case 0: return $0.a2(undefined)({h: 0});
|
|
3081
|
-
case undefined: return $0.a3(undefined)(undefined)($0.a3(undefined)(undefined)($0.a2(undefined)(
|
|
3125
|
+
case undefined: return $0.a3(undefined)(undefined)($0.a3(undefined)(undefined)($0.a2(undefined)(csegen_226()))($1($2.a1)))(Prelude_Types_traverse_Traversable_List($0, $1, $2.a2));
|
|
3082
3126
|
}
|
|
3083
3127
|
}
|
|
3084
3128
|
|
|
@@ -3090,11 +3134,11 @@ function Prelude_Types_traverse_Traversable_x28Eitherx20x24ex29($0, $1, $2) {
|
|
|
3090
3134
|
}
|
|
3091
3135
|
|
|
3092
3136
|
function Prelude_Types_toList_Foldable_Maybe($0) {
|
|
3093
|
-
return Prelude_Types_foldr_Foldable_Maybe(
|
|
3137
|
+
return Prelude_Types_foldr_Foldable_Maybe(csegen_226(), {h: 0}, $0);
|
|
3094
3138
|
}
|
|
3095
3139
|
|
|
3096
3140
|
function Prelude_Types_toList_Foldable_x28Eitherx20x24ex29($0) {
|
|
3097
|
-
return Prelude_Types_foldr_Foldable_x28Eitherx20x24ex29(
|
|
3141
|
+
return Prelude_Types_foldr_Foldable_x28Eitherx20x24ex29(csegen_226(), {h: 0}, $0);
|
|
3098
3142
|
}
|
|
3099
3143
|
|
|
3100
3144
|
function Prelude_Types_rangeFromTo_Range_x24a($0, $1, $2) {
|
|
@@ -3213,7 +3257,7 @@ function Prelude_Types_foldr_Foldable_x28Eitherx20x24ex29($0, $1, $2) {
|
|
|
3213
3257
|
}
|
|
3214
3258
|
|
|
3215
3259
|
function Prelude_Types_foldl_Foldable_x28Eitherx20x24ex29($0, $1, $2) {
|
|
3216
|
-
return Prelude_Types_foldr_Foldable_x28Eitherx20x24ex29($6 => $7 => Prelude_Basics_flip(
|
|
3260
|
+
return Prelude_Types_foldr_Foldable_x28Eitherx20x24ex29($6 => $7 => Prelude_Basics_flip(csegen_227(), $c => Prelude_Basics_flip($0, $6, $c), $7), $13 => $13, $2)($1);
|
|
3217
3261
|
}
|
|
3218
3262
|
|
|
3219
3263
|
function Prelude_Types_foldlM_Foldable_List($0, $1, $2, $3) {
|
|
@@ -3422,7 +3466,7 @@ function Prelude_Types_isLower($0) {
|
|
|
3422
3466
|
}
|
|
3423
3467
|
|
|
3424
3468
|
function Prelude_Types_isHexDigit($0) {
|
|
3425
|
-
return Prelude_Types_elem(csegen_77(),
|
|
3469
|
+
return Prelude_Types_elem(csegen_77(), csegen_210(), Prelude_Types_toUpper($0), Prelude_Types_n__9361_8543_hexChars($0));
|
|
3426
3470
|
}
|
|
3427
3471
|
|
|
3428
3472
|
function Prelude_Types_isDigit($0) {
|
|
@@ -3846,6 +3890,10 @@ function Prelude_Interfaces_when($0, $1, $2) {
|
|
|
3846
3890
|
}
|
|
3847
3891
|
}
|
|
3848
3892
|
|
|
3893
|
+
function Prelude_Interfaces_traverse_($0, $1, $2, $3) {
|
|
3894
|
+
return $1.a1(undefined)(undefined)($d => $e => Prelude_Interfaces_x2ax3e($0, $2($d), $e))($0.a2(undefined)(undefined))($3);
|
|
3895
|
+
}
|
|
3896
|
+
|
|
3849
3897
|
function Prelude_Interfaces_mapHom($0, $1, $2) {
|
|
3850
3898
|
return $0.a1(undefined)(undefined)(undefined)(undefined)($1)($1)($2);
|
|
3851
3899
|
}
|
|
@@ -4814,8 +4862,8 @@ function Data_Config_parseConfig($0, $1) {
|
|
|
4814
4862
|
}
|
|
4815
4863
|
};
|
|
4816
4864
|
const $4 = {a1: $5, a2: a => $d => ({h: 1, a1: $d}), a3: $f};
|
|
4817
|
-
const $3 = {a1: $4, a2:
|
|
4818
|
-
return Prelude_Interfaces_x3ex3dx3e($3,
|
|
4865
|
+
const $3 = {a1: $4, a2: csegen_278(), a3: csegen_279()};
|
|
4866
|
+
return Prelude_Interfaces_x3ex3dx3e($3, csegen_280(), $20 => Data_Config_n__5186_7922_parseConfigJson($0, $20), $1);
|
|
4819
4867
|
}
|
|
4820
4868
|
|
|
4821
4869
|
function Data_Config_json($0) {
|
|
@@ -4943,17 +4991,17 @@ function Text_Bounded_mergeBounds($0, $1) {
|
|
|
4943
4991
|
switch($1.h) {
|
|
4944
4992
|
case undefined: {
|
|
4945
4993
|
switch($1.a2) {
|
|
4946
|
-
case 1: return Prelude_Interfaces_x3cx24x3e(
|
|
4994
|
+
case 1: return Prelude_Interfaces_x3cx24x3e(csegen_283(), $e => $1.a1, $0);
|
|
4947
4995
|
default: {
|
|
4948
|
-
const $10 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(
|
|
4949
|
-
const $1c = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(
|
|
4996
|
+
const $10 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_294(), csegen_294(), Text_Bounded_start($0), Text_Bounded_start($1));
|
|
4997
|
+
const $1c = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_294(), csegen_294(), Text_Bounded_end($0), Text_Bounded_end($1));
|
|
4950
4998
|
return {a1: $1.a1, a2: 0, a3: {a1: $10.a1, a2: $10.a2, a3: $1c.a1, a4: $1c.a2}};
|
|
4951
4999
|
}
|
|
4952
5000
|
}
|
|
4953
5001
|
}
|
|
4954
5002
|
default: {
|
|
4955
|
-
const $30 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(
|
|
4956
|
-
const $3c = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(
|
|
5003
|
+
const $30 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_294(), csegen_294(), Text_Bounded_start($0), Text_Bounded_start($1));
|
|
5004
|
+
const $3c = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_294(), csegen_294(), Text_Bounded_end($0), Text_Bounded_end($1));
|
|
4957
5005
|
return {a1: $1.a1, a2: 0, a3: {a1: $30.a1, a2: $30.a2, a3: $3c.a1, a4: $3c.a2}};
|
|
4958
5006
|
}
|
|
4959
5007
|
}
|
|
@@ -4964,17 +5012,17 @@ function Text_Bounded_mergeBounds($0, $1) {
|
|
|
4964
5012
|
switch($1.h) {
|
|
4965
5013
|
case undefined: {
|
|
4966
5014
|
switch($1.a2) {
|
|
4967
|
-
case 1: return Prelude_Interfaces_x3cx24x3e(
|
|
5015
|
+
case 1: return Prelude_Interfaces_x3cx24x3e(csegen_283(), $56 => $1.a1, $0);
|
|
4968
5016
|
default: {
|
|
4969
|
-
const $58 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(
|
|
4970
|
-
const $64 = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(
|
|
5017
|
+
const $58 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_294(), csegen_294(), Text_Bounded_start($0), Text_Bounded_start($1));
|
|
5018
|
+
const $64 = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_294(), csegen_294(), Text_Bounded_end($0), Text_Bounded_end($1));
|
|
4971
5019
|
return {a1: $1.a1, a2: 0, a3: {a1: $58.a1, a2: $58.a2, a3: $64.a1, a4: $64.a2}};
|
|
4972
5020
|
}
|
|
4973
5021
|
}
|
|
4974
5022
|
}
|
|
4975
5023
|
default: {
|
|
4976
|
-
const $78 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(
|
|
4977
|
-
const $84 = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(
|
|
5024
|
+
const $78 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_294(), csegen_294(), Text_Bounded_start($0), Text_Bounded_start($1));
|
|
5025
|
+
const $84 = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_294(), csegen_294(), Text_Bounded_end($0), Text_Bounded_end($1));
|
|
4978
5026
|
return {a1: $1.a1, a2: 0, a3: {a1: $78.a1, a2: $78.a2, a3: $84.a1, a4: $84.a2}};
|
|
4979
5027
|
}
|
|
4980
5028
|
}
|
|
@@ -5193,7 +5241,7 @@ const Language_JSON_Parser_string = __lazy(function () {
|
|
|
5193
5241
|
});
|
|
5194
5242
|
|
|
5195
5243
|
const Language_JSON_Parser_rawString = __lazy(function () {
|
|
5196
|
-
return {h: 8, a1: 0, a2: Text_Parser_match(
|
|
5244
|
+
return {h: 8, a1: 0, a2: Text_Parser_match(csegen_302(), csegen_305(), {h: 2}), a3: () => mstr => {
|
|
5197
5245
|
switch(mstr.h) {
|
|
5198
5246
|
case undefined: return {h: 0, a1: mstr.a1};
|
|
5199
5247
|
case 0: return {h: 4, a1: {h: 0}, a2: 0, a3: 'invalid string'};
|
|
@@ -5202,7 +5250,7 @@ const Language_JSON_Parser_rawString = __lazy(function () {
|
|
|
5202
5250
|
});
|
|
5203
5251
|
|
|
5204
5252
|
function Language_JSON_Parser_punct($0) {
|
|
5205
|
-
return Text_Parser_match(
|
|
5253
|
+
return Text_Parser_match(csegen_302(), csegen_305(), {h: 4, a1: $0});
|
|
5206
5254
|
}
|
|
5207
5255
|
|
|
5208
5256
|
function Language_JSON_Parser_parseJSON($0) {
|
|
@@ -5235,11 +5283,11 @@ const Language_JSON_Parser_object = __lazy(function () {
|
|
|
5235
5283
|
});
|
|
5236
5284
|
|
|
5237
5285
|
const Language_JSON_Parser_number = __lazy(function () {
|
|
5238
|
-
return Text_Parser_Core_map_Functor_x28x28x28Grammarx20x24statex29x20x24tokx29x20x24cx29(1, $3 => ({h: 2, a1: $3}), Text_Parser_match(
|
|
5286
|
+
return Text_Parser_Core_map_Functor_x28x28x28Grammarx20x24statex29x20x24tokx29x20x24cx29(1, $3 => ({h: 2, a1: $3}), Text_Parser_match(csegen_302(), csegen_305(), {h: 1}));
|
|
5239
5287
|
});
|
|
5240
5288
|
|
|
5241
5289
|
const Language_JSON_Parser_null = __lazy(function () {
|
|
5242
|
-
return Text_Parser_Core_map_Functor_x28x28x28Grammarx20x24statex29x20x24tokx29x20x24cx29(1, $3 => ({h: 0}), Text_Parser_match(
|
|
5290
|
+
return Text_Parser_Core_map_Functor_x28x28x28Grammarx20x24statex29x20x24tokx29x20x24cx29(1, $3 => ({h: 0}), Text_Parser_match(csegen_302(), csegen_305(), {h: 3}));
|
|
5243
5291
|
});
|
|
5244
5292
|
|
|
5245
5293
|
const Language_JSON_Parser_json = __lazy(function () {
|
|
@@ -5247,7 +5295,7 @@ const Language_JSON_Parser_json = __lazy(function () {
|
|
|
5247
5295
|
});
|
|
5248
5296
|
|
|
5249
5297
|
const Language_JSON_Parser_boolean = __lazy(function () {
|
|
5250
|
-
return Text_Parser_Core_map_Functor_x28x28x28Grammarx20x24statex29x20x24tokx29x20x24cx29(1, $3 => ({h: 1, a1: $3}), Text_Parser_match(
|
|
5298
|
+
return Text_Parser_Core_map_Functor_x28x28x28Grammarx20x24statex29x20x24tokx29x20x24cx29(1, $3 => ({h: 1, a1: $3}), Text_Parser_match(csegen_302(), csegen_305(), {h: 0}));
|
|
5251
5299
|
});
|
|
5252
5300
|
|
|
5253
5301
|
const Language_JSON_Parser_array = __lazy(function () {
|
|
@@ -5423,7 +5471,7 @@ function Text_Lexer_opt($0) {
|
|
|
5423
5471
|
}
|
|
5424
5472
|
|
|
5425
5473
|
function Text_Lexer_oneOf($0) {
|
|
5426
|
-
return Text_Lexer_Core_pred(x => Prelude_Types_elem(csegen_77(),
|
|
5474
|
+
return Text_Lexer_Core_pred(x => Prelude_Types_elem(csegen_77(), csegen_210(), x, Prelude_Types_fastUnpack($0)));
|
|
5427
5475
|
}
|
|
5428
5476
|
|
|
5429
5477
|
function Text_Lexer_non($0) {
|
|
@@ -5700,11 +5748,11 @@ function Language_JSON_String_Tokens_charValue($0) {
|
|
|
5700
5748
|
}
|
|
5701
5749
|
|
|
5702
5750
|
const Language_JSON_String_Parser_stringChar = __lazy(function () {
|
|
5703
|
-
return {h: 12, a1: 1, a2: 1, a3: Text_Parser_match(
|
|
5751
|
+
return {h: 12, a1: 1, a2: 1, a3: Text_Parser_match(csegen_341(), csegen_344(), 1), a4: () => ({h: 12, a1: 1, a2: 1, a3: Text_Parser_match(csegen_341(), csegen_344(), 2), a4: () => Text_Parser_match(csegen_341(), csegen_344(), 3)})};
|
|
5704
5752
|
});
|
|
5705
5753
|
|
|
5706
5754
|
const Language_JSON_String_Parser_quotedString = __lazy(function () {
|
|
5707
|
-
const $0 = Text_Parser_match(
|
|
5755
|
+
const $0 = Text_Parser_match(csegen_341(), csegen_344(), 0);
|
|
5708
5756
|
return {h: 8, a1: 0, a2: Text_Parser_between(0, $0, $0, Text_Parser_many(Language_JSON_String_Parser_stringChar())), a3: () => chars => ({h: 11, a1: 0, a2: 0, a3: {h: 3}, a4: {h: 0, a1: Prelude_Types_fastPack(chars)}})};
|
|
5709
5757
|
});
|
|
5710
5758
|
|
|
@@ -5766,7 +5814,7 @@ function Text_Parser_between($0, $1, $2, $3) {
|
|
|
5766
5814
|
function Text_Parser_Core_case__doParse_5194($0, $1, $2, $3, $4, $5) {
|
|
5767
5815
|
switch($5.h) {
|
|
5768
5816
|
case 0: return {h: 0, a1: $5.a1, a2: $5.a2, a3: $5.a3};
|
|
5769
|
-
case 1: return {h: 1, a1: $5.a1, a2: $5.a2, a3: Prelude_Interfaces_x3cx24x3e(
|
|
5817
|
+
case 1: return {h: 1, a1: $5.a1, a2: $5.a2, a3: Prelude_Interfaces_x3cx24x3e(csegen_360(), $11 => $5.a3, $5.a3), a4: $5.a4};
|
|
5770
5818
|
}
|
|
5771
5819
|
}
|
|
5772
5820
|
|
|
@@ -6190,12 +6238,12 @@ function Text_Parser_Core_doParse($0, $1, $2, $3, $4) {
|
|
|
6190
6238
|
case 7: return Text_Parser_Core_case__doParse_4048($0, $1, $3.a1, $4, $2, Text_Parser_Core_doParse($0, $1, $2, $3.a1, $4));
|
|
6191
6239
|
case 1: {
|
|
6192
6240
|
switch($4.h) {
|
|
6193
|
-
case 0: return {h: 0, a1: $2, a2: 0, a3:
|
|
6241
|
+
case 0: return {h: 0, a1: $2, a2: 0, a3: csegen_362()};
|
|
6194
6242
|
case undefined: {
|
|
6195
6243
|
const $44 = $3.a2($4.a1.a1);
|
|
6196
6244
|
switch($44.h) {
|
|
6197
6245
|
case 0: return {h: 0, a1: $2, a2: 0, a3: {a1: {a1: $3.a1, a2: {a1: $4.a1.a3}}, a2: {h: 0}}};
|
|
6198
|
-
case undefined: return {h: 1, a1: $1, a2: $2, a3: Prelude_Interfaces_x3cx24x3e(
|
|
6246
|
+
case undefined: return {h: 1, a1: $1, a2: $2, a3: Prelude_Interfaces_x3cx24x3e(csegen_360(), $58 => $44.a1, $4.a1), a4: $4.a2};
|
|
6199
6247
|
}
|
|
6200
6248
|
}
|
|
6201
6249
|
}
|
|
@@ -6208,7 +6256,7 @@ function Text_Parser_Core_doParse($0, $1, $2, $3, $4) {
|
|
|
6208
6256
|
}
|
|
6209
6257
|
case 2: {
|
|
6210
6258
|
switch($4.h) {
|
|
6211
|
-
case 0: return {h: 0, a1: $2, a2: 0, a3:
|
|
6259
|
+
case 0: return {h: 0, a1: $2, a2: 0, a3: csegen_362()};
|
|
6212
6260
|
case undefined: {
|
|
6213
6261
|
switch($3.a2($4.a1.a1)) {
|
|
6214
6262
|
case 1: return {h: 1, a1: $1, a2: $2, a3: Text_Bounded_removeIrrelevance($4.a1), a4: {a1: $4.a1, a2: $4.a2}};
|
|
@@ -6237,7 +6285,7 @@ function Text_Parser_Core_doParse($0, $1, $2, $3, $4) {
|
|
|
6237
6285
|
case 13: return Text_Parser_Core_case__doParse_5194($0, $1, $3.a1, $4, $2, Text_Parser_Core_doParse($0, $1, $2, $3.a1, $4));
|
|
6238
6286
|
case 14: {
|
|
6239
6287
|
switch($4.h) {
|
|
6240
|
-
case 0: return {h: 0, a1: $2, a2: 0, a3:
|
|
6288
|
+
case 0: return {h: 0, a1: $2, a2: 0, a3: csegen_362()};
|
|
6241
6289
|
case undefined: return {h: 1, a1: $1, a2: $2, a3: Text_Bounded_irrelevantBounds($4.a1.a3), a4: {a1: $4.a1, a2: $4.a2}};
|
|
6242
6290
|
}
|
|
6243
6291
|
}
|
|
@@ -6343,7 +6391,7 @@ function Decidable_Equality_decEq_DecEq_FromEqx24a($0, $1, $2) {
|
|
|
6343
6391
|
}
|
|
6344
6392
|
|
|
6345
6393
|
function Decidable_Equality_decEq_DecEq_Char($0, $1) {
|
|
6346
|
-
return Decidable_Equality_decEq_DecEq_FromEqx24a(
|
|
6394
|
+
return Decidable_Equality_decEq_DecEq_FromEqx24a(csegen_210(), $0, $1);
|
|
6347
6395
|
}
|
|
6348
6396
|
|
|
6349
6397
|
function Data_Either_maybeToEither($0, $1) {
|
|
@@ -6379,40 +6427,40 @@ function PullRequest_case__identifyOrCreatePRx2ccreatePR_2359($0, $1, $2, $3, $4
|
|
|
6379
6427
|
}
|
|
6380
6428
|
}
|
|
6381
6429
|
|
|
6382
|
-
function
|
|
6430
|
+
function PullRequest_n__6847_1429_userNotice($0, $1, $2, $3, $4, $5, $6) {
|
|
6383
6431
|
switch($6.h) {
|
|
6384
6432
|
case 0: {
|
|
6385
6433
|
switch($2.h) {
|
|
6386
6434
|
case 0: return 'no users';
|
|
6387
|
-
default: return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1:
|
|
6435
|
+
default: return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: PullRequest_n__6847_1428_csv($0, $1, $2, $3, $4, $5, $2), a2: {h: 0}});
|
|
6388
6436
|
}
|
|
6389
6437
|
}
|
|
6390
|
-
case undefined: return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1:
|
|
6438
|
+
case undefined: return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: PullRequest_n__6847_1428_csv($0, $1, $2, $3, $4, $5, {a1: $6.a1, a2: $2}), a2: {h: 0}});
|
|
6391
6439
|
}
|
|
6392
6440
|
}
|
|
6393
6441
|
|
|
6394
|
-
function
|
|
6442
|
+
function PullRequest_n__6847_1430_teamNotice($0, $1, $2, $3, $4, $5, $6) {
|
|
6395
6443
|
switch($6.h) {
|
|
6396
6444
|
case 0: return '';
|
|
6397
6445
|
case undefined: {
|
|
6398
6446
|
switch($6.a2.h) {
|
|
6399
|
-
case 0: return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: ' and team ', a2: {a1:
|
|
6400
|
-
default: return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: ' and teams ', a2: {a1:
|
|
6447
|
+
case 0: return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: ' and team ', a2: {a1: PullRequest_n__6847_1428_csv($0, $1, $2, $3, $4, $5, {a1: $6.a1, a2: {h: 0}}), a2: {h: 0}}});
|
|
6448
|
+
default: return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: ' and teams ', a2: {a1: PullRequest_n__6847_1428_csv($0, $1, $2, $3, $4, $5, $6), a2: {h: 0}}});
|
|
6401
6449
|
}
|
|
6402
6450
|
}
|
|
6403
|
-
default: return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: ' and teams ', a2: {a1:
|
|
6451
|
+
default: return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: ' and teams ', a2: {a1: PullRequest_n__6847_1428_csv($0, $1, $2, $3, $4, $5, $6), a2: {h: 0}}});
|
|
6404
6452
|
}
|
|
6405
6453
|
}
|
|
6406
6454
|
|
|
6407
|
-
function
|
|
6455
|
+
function PullRequest_n__7478_2030_prepareDescriptionFile($0, $1, $2, $3, $4) {
|
|
6408
6456
|
return $4.a1.a2(undefined)(undefined)(System_File_Meta_exists($4, '.github/PULL_REQUEST_TEMPLATE.md'))($12 => Prelude_Interfaces_when($4.a1.a1, $12, () => $4.a1.a1.a1(undefined)(undefined)($23 => (undefined))(System_File_copyFile($4, '.github/PULL_REQUEST_TEMPLATE.md', 'pr_description.tmp.md'))));
|
|
6409
6457
|
}
|
|
6410
6458
|
|
|
6411
|
-
function
|
|
6459
|
+
function PullRequest_n__6847_1431_prComment($0, $1, $2, $3, $4, $5, $6) {
|
|
6412
6460
|
return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: ':musical_note: Harmoniously assigned @', a2: {a1: $6, a2: {a1: ' to review this PR.', a2: {h: 0}}}});
|
|
6413
6461
|
}
|
|
6414
6462
|
|
|
6415
|
-
function
|
|
6463
|
+
function PullRequest_n__6847_1427_maybeDecorate($0, $1, $2, $3, $4, $5, $6) {
|
|
6416
6464
|
const $7 = $8 => {
|
|
6417
6465
|
switch(Data_Config_rf__colors($5)) {
|
|
6418
6466
|
case 1: return $8;
|
|
@@ -6422,15 +6470,15 @@ function PullRequest_n__6843_1427_maybeDecorate($0, $1, $2, $3, $4, $5, $6) {
|
|
|
6422
6470
|
return Text_PrettyPrint_Prettyprinter_Render_Terminal_renderString(Text_PrettyPrint_Prettyprinter_Doc_layoutPretty(Text_PrettyPrint_Prettyprinter_Doc_defaultLayoutOptions(), $7($6)));
|
|
6423
6471
|
}
|
|
6424
6472
|
|
|
6425
|
-
function
|
|
6473
|
+
function PullRequest_n__7478_2029_inlineDescription($0, $1, $2, $3, $4) {
|
|
6426
6474
|
return Prelude_Interfaces_x3ex3e($4.a1, Prelude_IO_putStrLn($4, 'What would you like the description to be (two blank lines to finish)?'), () => Prelude_Interfaces_x3cx24x3e($4.a1.a1.a1, $13 => Data_String_fastUnlines($13), Util_getManyLines($4, Data_Fuel_limit(Prelude_Types_prim__integerToNat(100n)))));
|
|
6427
6475
|
}
|
|
6428
6476
|
|
|
6429
|
-
function
|
|
6477
|
+
function PullRequest_n__6740_1302_forkedReviews($0, $1, $2, $3, $4) {
|
|
6430
6478
|
return FFI_Concurrency_fork(csegen_21(), ('reviews --json '+Prelude_Show_show_Show_Integer($4.a1)));
|
|
6431
6479
|
}
|
|
6432
6480
|
|
|
6433
|
-
function
|
|
6481
|
+
function PullRequest_n__7478_2031_editorDescription($0, $1, $2, $3, $4, $5) {
|
|
6434
6482
|
const $10 = () => {
|
|
6435
6483
|
const $27 = $28 => {
|
|
6436
6484
|
switch($28) {
|
|
@@ -6440,14 +6488,14 @@ function PullRequest_n__7474_2031_editorDescription($0, $1, $2, $3, $4, $5) {
|
|
|
6440
6488
|
};
|
|
6441
6489
|
return $4.a1.a2(undefined)(undefined)(System_Node_system($4, Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: $5, a2: {a1: ' pr_description.tmp.md', a2: {h: 0}}})))($27);
|
|
6442
6490
|
};
|
|
6443
|
-
return Prelude_Interfaces_x3ex3e($4.a1,
|
|
6491
|
+
return Prelude_Interfaces_x3ex3e($4.a1, PullRequest_n__7478_2030_prepareDescriptionFile($0, $1, $2, $3, $4), $10);
|
|
6444
6492
|
}
|
|
6445
6493
|
|
|
6446
|
-
function
|
|
6447
|
-
return
|
|
6494
|
+
function PullRequest_n__6847_1428_csv($0, $1, $2, $3, $4, $5, $6) {
|
|
6495
|
+
return PullRequest_n__6847_1427_maybeDecorate($0, $1, $2, $3, $4, $5, Text_PrettyPrint_Prettyprinter_Doc_encloseSep(Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(', '), Prelude_Types_map_Functor_List(csegen_405(), $6)));
|
|
6448
6496
|
}
|
|
6449
6497
|
|
|
6450
|
-
function
|
|
6498
|
+
function PullRequest_n__7478_2032_createPR($0, $1, $2, $3) {
|
|
6451
6499
|
return Prelude_Interfaces_x3ex3e(csegen_15(), $8 => $9 => Data_Promise_x3ex3ex3d_Monad_Promise($c => $d => FFI_Git_remoteTrackingBranch($0, $c, $d), $13 => Prelude_Interfaces_when(csegen_9(), Prelude_Types_x3dx3d_Eq_x28Maybex20x24ax29(csegen_94(), $13, {h: 0}), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), 'Creating a new remote branch...'), () => $27 => $28 => FFI_Git_pushNewBranch($0, 'origin', $2, $27, $28))), $8, $9), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Creating a new PR for the current branch (', a2: {a1: $2, a2: {a1: ').', a2: {h: 0}}}})), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'What branch are you merging into (ENTER for default: ', a2: {a1: $3.a4, a2: {a1: ')?', a2: {h: 0}}}})), () => $5d => $5e => {
|
|
6452
6500
|
const $6a = baseBranchInput => {
|
|
6453
6501
|
const $6b = PullRequest_case__identifyOrCreatePRx2ccreatePR_2359($0, $1, $2, $3, baseBranchInput, Data_String_strM(baseBranchInput));
|
|
@@ -6458,21 +6506,21 @@ function PullRequest_n__7474_2032_createPR($0, $1, $2, $3) {
|
|
|
6458
6506
|
let $a8;
|
|
6459
6507
|
switch($a9.h) {
|
|
6460
6508
|
case 0: {
|
|
6461
|
-
$a8 =
|
|
6509
|
+
$a8 = PullRequest_n__7478_2029_inlineDescription($0, $1, $2, $3, csegen_21());
|
|
6462
6510
|
break;
|
|
6463
6511
|
}
|
|
6464
6512
|
case undefined: {
|
|
6465
|
-
$a8 = Prelude_Interfaces_x3cx24x3e(csegen_103(), $b7 => Prelude_Types_either(() => $ba => '', () => $bc => $bc, $b7),
|
|
6513
|
+
$a8 = Prelude_Interfaces_x3cx24x3e(csegen_103(), $b7 => Prelude_Types_either(() => $ba => '', () => $bc => $bc, $b7), PullRequest_n__7478_2031_editorDescription($0, $1, $2, $3, csegen_21(), $a9.a1));
|
|
6466
6514
|
break;
|
|
6467
6515
|
}
|
|
6468
6516
|
}
|
|
6469
6517
|
return Data_Promise_x3ex3ex3d_Monad_Promise($a8, description => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), 'Creating PR...'), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), $2), () => FFI_GitHub_createPR($1, $3.a2, $3.a3, $2, $6b, title, description))), $a5, $a6);
|
|
6470
6518
|
};
|
|
6471
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $9d => ($7e+Data_String_trim($9d)),
|
|
6519
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $9d => ($7e+Data_String_trim($9d)), csegen_407()), $a4, $95, $96);
|
|
6472
6520
|
});
|
|
6473
6521
|
return Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), 'What would you like the title to be?'), $7d);
|
|
6474
6522
|
};
|
|
6475
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $65 => Data_String_trim($65),
|
|
6523
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $65 => Data_String_trim($65), csegen_407()), $6a, $5d, $5e);
|
|
6476
6524
|
})));
|
|
6477
6525
|
}
|
|
6478
6526
|
|
|
@@ -6529,7 +6577,7 @@ function PullRequest_reviewsForUser($0, $1, $2, $3) {
|
|
|
6529
6577
|
};
|
|
6530
6578
|
return Data_Promise_x3ex3ex3d_Monad_Promise($2a, reviews => $53 => $54 => Data_Promise_pure_Applicative_Promise(Prelude_Types_List_filter($59 => Data_Review_isAuthor($2, $59), Prelude_Types_join_Monad_List(reviews)), $53, $54), $27, $28);
|
|
6531
6579
|
};
|
|
6532
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3dx3cx3c(csegen_15(), csegen_113(), Prelude_Types_traverse_Traversable_List(csegen_9(), $1e =>
|
|
6580
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3dx3cx3c(csegen_15(), csegen_113(), Prelude_Types_traverse_Traversable_List(csegen_9(), $1e => PullRequest_n__6740_1302_forkedReviews($1, $3, $2, $0, $1e), $4)), $26, $10, $11);
|
|
6533
6581
|
};
|
|
6534
6582
|
}
|
|
6535
6583
|
|
|
@@ -6564,18 +6612,18 @@ function PullRequest_requestReviewers($0, $1, $2, $3, $4, $5, $6, $7) {
|
|
|
6564
6612
|
}
|
|
6565
6613
|
const $4e = Prelude_Interfaces_when(csegen_9(), $52, () => Prelude_Interfaces_x3ex3e(csegen_15(), $59 => $5a => Data_Promise_map_Functor_Promise($5d => (undefined), FFI_GitHub_addPullReviewers($1, $0.a2, $0.a3, $2.a1, $42, $48), $59, $5a), () => Prelude_Interfaces_when(csegen_9(), $0.a6, () => $72 => $73 => {
|
|
6566
6614
|
switch(chosenUser.h) {
|
|
6567
|
-
case undefined: return FFI_GitHub_createComment($1, $0.a2, $0.a3, $2.a1,
|
|
6615
|
+
case undefined: return FFI_GitHub_createComment($1, $0.a2, $0.a3, $2.a1, PullRequest_n__6847_1431_prComment($1, $5, $4, $3, $2, $0, chosenUser.a1), $72, $73);
|
|
6568
6616
|
case 0: return Data_Promise_pure_Applicative_Promise(undefined, $72, $73);
|
|
6569
6617
|
}
|
|
6570
6618
|
})));
|
|
6571
6619
|
let $8c;
|
|
6572
6620
|
switch(Prelude_Types_null_Foldable_List($42)) {
|
|
6573
6621
|
case 1: {
|
|
6574
|
-
$8c = () => Prelude_IO_putStrLn(csegen_21(),
|
|
6622
|
+
$8c = () => Prelude_IO_putStrLn(csegen_21(), PullRequest_n__6847_1427_maybeDecorate($1, $5, $4, $3, $2, $0, Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(3), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('Could not pick a user from the given Team ')), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('(perhaps the only option was the author of the pull request?).'), a2: {h: 0}}})));
|
|
6575
6623
|
break;
|
|
6576
6624
|
}
|
|
6577
6625
|
case 0: {
|
|
6578
|
-
$8c = () => Prelude_IO_putStrLn(csegen_21(),
|
|
6626
|
+
$8c = () => Prelude_IO_putStrLn(csegen_21(), PullRequest_n__6847_1427_maybeDecorate($1, $5, $4, $3, $2, $0, Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Assigned ', a2: {a1: PullRequest_n__6847_1429_userNotice($1, $5, $4, $3, $2, $0, chosenUser), a2: {a1: PullRequest_n__6847_1430_teamNotice($1, $5, $4, $3, $2, $0, $48), a2: {a1: ' to the open PR ', a2: {h: 0}}}}})), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'for the current branch (', a2: {a1: Data_PullRequest_rf__webURI($0, $2), a2: {a1: ').', a2: {h: 0}}}})), a2: {h: 0}}})));
|
|
6579
6627
|
break;
|
|
6580
6628
|
}
|
|
6581
6629
|
}
|
|
@@ -6610,7 +6658,7 @@ function PullRequest_partitionx27($0, $1, $2) {
|
|
|
6610
6658
|
}
|
|
6611
6659
|
};
|
|
6612
6660
|
const $4c = {a1: $4d, a2: a => $55 => ({h: 1, a1: $55}), a3: $57};
|
|
6613
|
-
const $4a = Prelude_Types_traverse_Traversable_List($4c,
|
|
6661
|
+
const $4a = Prelude_Types_traverse_Traversable_List($4c, csegen_437(), prJsons);
|
|
6614
6662
|
return Data_Promise_either(csegen_115(), $4a, $45, $46);
|
|
6615
6663
|
};
|
|
6616
6664
|
return Data_Promise_x3ex3ex3d_Monad_Promise($44, pulls => $67 => $68 => Data_Promise_pure_Applicative_Promise(PullRequest_partition(Prelude_Types_join_Monad_List(pulls)), $67, $68), $41, $42);
|
|
@@ -6641,7 +6689,7 @@ function PullRequest_identifyOrCreatePR($0, $1, $2, $3, $4, $5) {
|
|
|
6641
6689
|
}
|
|
6642
6690
|
};
|
|
6643
6691
|
}
|
|
6644
|
-
case 0: return Prelude_Interfaces_x3cx24x3e(csegen_103(), $23 => ({a1: 1, a2: $23}),
|
|
6692
|
+
case 0: return Prelude_Interfaces_x3cx24x3e(csegen_103(), $23 => ({a1: 1, a2: $23}), PullRequest_n__7478_2032_createPR($1, $2, $3, $0));
|
|
6645
6693
|
default: return $2c => $2d => Data_Promise_reject('Multiple PRs for the current brach. We only handle 1 PR per branch currently.', $2c, $2d);
|
|
6646
6694
|
}
|
|
6647
6695
|
};
|
|
@@ -6717,14 +6765,14 @@ function System_File_ReadWrite_readLinesOnto($0, $1, $2, $3, $4) {
|
|
|
6717
6765
|
}
|
|
6718
6766
|
};
|
|
6719
6767
|
const $26 = {a1: $27, a2: a => $2f => ({h: 1, a1: $2f}), a3: $31};
|
|
6720
|
-
const $25 = {a1: $26, a2:
|
|
6768
|
+
const $25 = {a1: $26, a2: csegen_278(), a3: csegen_279()};
|
|
6721
6769
|
const $40 = b => a => func => $41 => {
|
|
6722
6770
|
switch($41.h) {
|
|
6723
6771
|
case 0: return {h: 0, a1: $41.a1};
|
|
6724
6772
|
case 1: return {h: 1, a1: func($41.a1)};
|
|
6725
6773
|
}
|
|
6726
6774
|
};
|
|
6727
|
-
const $3f = {a1: $40, a2:
|
|
6775
|
+
const $3f = {a1: $40, a2: csegen_457(), a3: csegen_461()};
|
|
6728
6776
|
return Prelude_Interfaces_Monad_x3ex3ex3d_Monad_Composex28x28x2ex20x24mx29x20x24tx29($0.a1, $25, $3f, System_File_ReadWrite_fGetLine($0, $4), str => System_File_ReadWrite_readLinesOnto($0, {a1: str, a2: $1}, 0n, $3.a1(), $4));
|
|
6729
6777
|
}
|
|
6730
6778
|
default: {
|
|
@@ -7250,23 +7298,27 @@ function FFI_GitHub_listPullRequestsJsonStr($0, $1, $2, $3, $4, $5) {
|
|
|
7250
7298
|
}
|
|
7251
7299
|
|
|
7252
7300
|
function FFI_GitHub_listPullRequests($0, $1, $2, $3, $4, $5) {
|
|
7253
|
-
return Prelude_Interfaces_x3dx3cx3c(csegen_15(),
|
|
7301
|
+
return Prelude_Interfaces_x3dx3cx3c(csegen_15(), csegen_482(), FFI_GitHub_listPullRequestsJsonStr($0, $1, $2, $3, $4, $5));
|
|
7254
7302
|
}
|
|
7255
7303
|
|
|
7256
7304
|
function FFI_GitHub_listPRsForBranch($0, $1, $2, $3) {
|
|
7257
|
-
return Prelude_Interfaces_x3dx3cx3c(csegen_15(),
|
|
7305
|
+
return Prelude_Interfaces_x3dx3cx3c(csegen_15(), csegen_482(), $a => $b => FFI_promiseIO($e => $f => $10 => FFI_GitHub_prim__listPRsForBranch($0, $1, $2, $3, $e, $f, $10), $a, $b));
|
|
7258
7306
|
}
|
|
7259
7307
|
|
|
7260
7308
|
function FFI_GitHub_listOrgMembers($0, $1) {
|
|
7261
7309
|
return Prelude_Interfaces_x3cx24x3e(csegen_103(), $6 => Data_String_lines($6), $a => $b => FFI_promiseIO($e => $f => $10 => FFI_GitHub_prim__listOrgMembers($0, $1, $e, $f, $10), $a, $b));
|
|
7262
7310
|
}
|
|
7263
7311
|
|
|
7312
|
+
function FFI_GitHub_listMyTeams($0) {
|
|
7313
|
+
return Prelude_Interfaces_x3cx24x3e(csegen_103(), $5 => Data_String_lines($5), $9 => $a => FFI_promiseIO($d => $e => $f => FFI_GitHub_prim__listMyTeams($0, $d, $e, $f), $9, $a));
|
|
7314
|
+
}
|
|
7315
|
+
|
|
7264
7316
|
function FFI_GitHub_getUser($0) {
|
|
7265
|
-
return Prelude_Interfaces_x3cx3dx3c(csegen_15(),
|
|
7317
|
+
return Prelude_Interfaces_x3cx3dx3c(csegen_15(), csegen_483(), $7 => $8 => $9 => FFI_promiseIO($c => $d => $e => FFI_GitHub_prim__getUser($0, $7, $c, $d, $e), $8, $9));
|
|
7266
7318
|
}
|
|
7267
7319
|
|
|
7268
7320
|
function FFI_GitHub_getSelf($0) {
|
|
7269
|
-
return Prelude_Interfaces_x3dx3cx3c(csegen_15(),
|
|
7321
|
+
return Prelude_Interfaces_x3dx3cx3c(csegen_15(), csegen_483(), $7 => $8 => FFI_promiseIO($b => $c => $d => FFI_GitHub_prim__getSelf($0, $b, $c, $d), $7, $8));
|
|
7270
7322
|
}
|
|
7271
7323
|
|
|
7272
7324
|
function FFI_GitHub_getRepoDefaultBranch($0, $1, $2, $3, $4) {
|
|
@@ -7360,8 +7412,8 @@ function Data_User_parseUserString($0) {
|
|
|
7360
7412
|
}
|
|
7361
7413
|
};
|
|
7362
7414
|
const $3 = {a1: $4, a2: a => $c => ({h: 1, a1: $c}), a3: $e};
|
|
7363
|
-
const $2 = {a1: $3, a2:
|
|
7364
|
-
return Prelude_Interfaces_x3ex3dx3e($2,
|
|
7415
|
+
const $2 = {a1: $3, a2: csegen_278(), a3: csegen_279()};
|
|
7416
|
+
return Prelude_Interfaces_x3ex3dx3e($2, csegen_280(), $1f => Data_User_parseUser($1f), $0);
|
|
7365
7417
|
}
|
|
7366
7418
|
|
|
7367
7419
|
function Data_User_parseUser($0) {
|
|
@@ -7408,7 +7460,7 @@ function Data_Review_parseReview($0) {
|
|
|
7408
7460
|
}
|
|
7409
7461
|
};
|
|
7410
7462
|
const $20 = {a1: $21, a2: a => $29 => ({h: 1, a1: $29}), a3: $2b};
|
|
7411
|
-
const $1f = {a1: $20, a2:
|
|
7463
|
+
const $1f = {a1: $20, a2: csegen_278(), a3: csegen_279()};
|
|
7412
7464
|
const $1d = Prelude_Interfaces_x3dx3cx3c($1f, $3a => Data_Review_parseState($3a), Language_JSON_Accessors_string($12.a2.a1));
|
|
7413
7465
|
const $40 = state => {
|
|
7414
7466
|
const $46 = b => a => func => $47 => {
|
|
@@ -7429,7 +7481,7 @@ function Data_Review_parseReview($0) {
|
|
|
7429
7481
|
}
|
|
7430
7482
|
};
|
|
7431
7483
|
const $45 = {a1: $46, a2: a => $4e => ({h: 1, a1: $4e}), a3: $50};
|
|
7432
|
-
const $44 = {a1: $45, a2:
|
|
7484
|
+
const $44 = {a1: $45, a2: csegen_278(), a3: csegen_279()};
|
|
7433
7485
|
const $42 = Prelude_Interfaces_x3dx3cx3c($44, $5f => Data_Review_parseDateTime($5f), Language_JSON_Accessors_string($12.a2.a2.a1));
|
|
7434
7486
|
return Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29($42, submittedAt => ({h: 1, a1: {a1: submittedAt, a2: author, a3: state}}));
|
|
7435
7487
|
};
|
|
@@ -7682,8 +7734,8 @@ function Data_PullRequest_parsePullRequestsString($0) {
|
|
|
7682
7734
|
}
|
|
7683
7735
|
};
|
|
7684
7736
|
const $3 = {a1: $4, a2: a => $c => ({h: 1, a1: $c}), a3: $e};
|
|
7685
|
-
const $2 = {a1: $3, a2:
|
|
7686
|
-
return Prelude_Interfaces_x3ex3dx3e($2,
|
|
7737
|
+
const $2 = {a1: $3, a2: csegen_278(), a3: csegen_279()};
|
|
7738
|
+
return Prelude_Interfaces_x3ex3dx3e($2, csegen_280(), csegen_437(), $0);
|
|
7687
7739
|
}
|
|
7688
7740
|
|
|
7689
7741
|
function Data_PullRequest_parsePullRequestString($0) {
|
|
@@ -7705,8 +7757,8 @@ function Data_PullRequest_parsePullRequestString($0) {
|
|
|
7705
7757
|
}
|
|
7706
7758
|
};
|
|
7707
7759
|
const $3 = {a1: $4, a2: a => $c => ({h: 1, a1: $c}), a3: $e};
|
|
7708
|
-
const $2 = {a1: $3, a2:
|
|
7709
|
-
return Prelude_Interfaces_x3ex3dx3e($2,
|
|
7760
|
+
const $2 = {a1: $3, a2: csegen_278(), a3: csegen_279()};
|
|
7761
|
+
return Prelude_Interfaces_x3ex3dx3e($2, csegen_280(), $1f => Data_PullRequest_parsePR($1f), $0);
|
|
7710
7762
|
}
|
|
7711
7763
|
|
|
7712
7764
|
function Data_PullRequest_parsePR($0) {
|
|
@@ -7732,7 +7784,7 @@ function Data_PullRequest_parsePR($0) {
|
|
|
7732
7784
|
}
|
|
7733
7785
|
};
|
|
7734
7786
|
const $2e = {a1: $2f, a2: a => $37 => ({h: 1, a1: $37}), a3: $39};
|
|
7735
|
-
const $2d = {a1: $2e, a2:
|
|
7787
|
+
const $2d = {a1: $2e, a2: csegen_278(), a3: csegen_279()};
|
|
7736
7788
|
const $2b = Prelude_Interfaces_x3dx3cx3c($2d, $48 => Data_PullRequest_parseState($48), Language_JSON_Accessors_string($18.a2.a2.a1));
|
|
7737
7789
|
const $4e = state => {
|
|
7738
7790
|
const $54 = b => a => func => $55 => {
|
|
@@ -7753,7 +7805,7 @@ function Data_PullRequest_parsePR($0) {
|
|
|
7753
7805
|
}
|
|
7754
7806
|
};
|
|
7755
7807
|
const $53 = {a1: $54, a2: a => $5c => ({h: 1, a1: $5c}), a3: $5e};
|
|
7756
|
-
const $52 = {a1: $53, a2:
|
|
7808
|
+
const $52 = {a1: $53, a2: csegen_278(), a3: csegen_279()};
|
|
7757
7809
|
const $50 = Prelude_Interfaces_x3dx3cx3c($52, $6d => Data_PullRequest_parseDateTime($6d), Language_JSON_Accessors_string($18.a2.a2.a2.a1));
|
|
7758
7810
|
return Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29($50, createdAt => Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29(Language_JSON_Accessors_array($78 => Language_JSON_Accessors_string($78), $18.a2.a2.a2.a2.a1), reviewers => Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29(Language_JSON_Accessors_string($18.a2.a2.a2.a2.a2.a1), headRef => ({h: 1, a1: {a1: number, a2: createdAt, a3: author, a4: state, a5: reviewers, a6: headRef}}))));
|
|
7759
7811
|
};
|
|
@@ -7792,6 +7844,10 @@ function FFI_Git_case__remoteTrackingBranch_1746($0, $1, $2) {
|
|
|
7792
7844
|
}
|
|
7793
7845
|
}
|
|
7794
7846
|
|
|
7847
|
+
function FFI_Git_userEmail($0, $1, $2) {
|
|
7848
|
+
return FFI_promiseIO($5 => $6 => $7 => FFI_Git_prim__userEmail($0, $5, $6, $7), $1, $2);
|
|
7849
|
+
}
|
|
7850
|
+
|
|
7795
7851
|
function FFI_Git_remoteURI($0, $1, $2, $3) {
|
|
7796
7852
|
return FFI_promiseIO($6 => $7 => $8 => FFI_Git_prim__remoteURI($0, $1, $6, $7, $8), $2, $3);
|
|
7797
7853
|
}
|
|
@@ -7879,7 +7935,7 @@ function Data_Pagination_with__lemma_5493($0, $1, $2, $3, $4) {
|
|
|
7879
7935
|
}
|
|
7880
7936
|
|
|
7881
7937
|
function Data_Pagination_toList_Foldable_x28x28x28Paginationx20x24itemsx29x20x24perPagex29x20x24pagex29($0) {
|
|
7882
|
-
return Data_Pagination_foldr_Foldable_x28x28x28Paginationx20x24itemsx29x20x24perPagex29x20x24pagex29(
|
|
7938
|
+
return Data_Pagination_foldr_Foldable_x28x28x28Paginationx20x24itemsx29x20x24perPagex29x20x24pagex29(csegen_226(), {h: 0}, $0);
|
|
7883
7939
|
}
|
|
7884
7940
|
|
|
7885
7941
|
function Data_Pagination_null_Foldable_x28x28x28Paginationx20x24itemsx29x20x24perPagex29x20x24pagex29($0) {
|
|
@@ -7894,7 +7950,7 @@ function Data_Pagination_foldr_Foldable_x28x28x28Paginationx20x24itemsx29x20x24p
|
|
|
7894
7950
|
}
|
|
7895
7951
|
|
|
7896
7952
|
function Data_Pagination_foldl_Foldable_x28x28x28Paginationx20x24itemsx29x20x24perPagex29x20x24pagex29($0, $1, $2) {
|
|
7897
|
-
return Data_Pagination_foldr_Foldable_x28x28x28Paginationx20x24itemsx29x20x24perPagex29x20x24pagex29($6 => $7 => Prelude_Basics_flip(
|
|
7953
|
+
return Data_Pagination_foldr_Foldable_x28x28x28Paginationx20x24itemsx29x20x24perPagex29x20x24pagex29($6 => $7 => Prelude_Basics_flip(csegen_227(), $c => Prelude_Basics_flip($0, $6, $c), $7), $13 => $13, $2)($1);
|
|
7898
7954
|
}
|
|
7899
7955
|
|
|
7900
7956
|
function Data_Pagination_foldlM_Foldable_x28x28x28Paginationx20x24itemsx29x20x24perPagex29x20x24pagex29($0, $1, $2, $3) {
|
|
@@ -7986,7 +8042,7 @@ function System_getEnv($0, $1) {
|
|
|
7986
8042
|
function System_getArgs($0) {
|
|
7987
8043
|
const $12 = n => {
|
|
7988
8044
|
switch(Prelude_EqOrd_x3e_Ord_Int(n, Number(_truncBigInt32(0n)))) {
|
|
7989
|
-
case 1: return Prelude_Interfaces_for($0.a1.a1, {a1: b => a => func => $1e => Prelude_Types_map_Functor_List(func, $1e), a2: csegen_77(), a3: b => a => f => $25 => $26 => $27 => Prelude_Types_traverse_Traversable_List($25, $26, $27)}, Prelude_Types_rangeFromTo_Range_x24a({a1: {a1:
|
|
8045
|
+
case 1: return Prelude_Interfaces_for($0.a1.a1, {a1: b => a => func => $1e => Prelude_Types_map_Functor_List(func, $1e), a2: csegen_77(), a3: b => a => f => $25 => $26 => $27 => Prelude_Types_traverse_Traversable_List($25, $26, $27)}, Prelude_Types_rangeFromTo_Range_x24a({a1: {a1: csegen_516(), a2: $33 => $34 => Prelude_Num_div_Integral_Int($33, $34), a3: $39 => $3a => Prelude_Num_mod_Integral_Int($39, $3a)}, a2: {a1: csegen_294(), a2: {a1: csegen_516(), a2: $45 => _sub32s(0, $45), a3: $49 => $4a => _sub32s($49, $4a)}}}, 0, _sub32s(n, 1)), $52 => $0.a2(undefined)($58 => System_prim__getArg($52, $58)));
|
|
7990
8046
|
case 0: return $0.a1.a1.a2(undefined)({h: 0});
|
|
7991
8047
|
}
|
|
7992
8048
|
};
|
|
@@ -8032,11 +8088,11 @@ function Help_n__4274_1023_heading($0, $1) {
|
|
|
8032
8088
|
}
|
|
8033
8089
|
|
|
8034
8090
|
function Help_n__4274_1022_argument($0, $1) {
|
|
8035
|
-
return Help_n__4274_1019_maybeDecorate($0,
|
|
8091
|
+
return Help_n__4274_1019_maybeDecorate($0, csegen_405(), $1);
|
|
8036
8092
|
}
|
|
8037
8093
|
|
|
8038
8094
|
function Help_help($0) {
|
|
8039
|
-
return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'harmony ', a2: {a1: Help_n__4274_1021_subcommand($0, '<subcommand>'), a2: {a1: '\n\n', a2: {a1: Help_n__4274_1023_heading($0, 'Subcommands'), a2: {a1: ':\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'help'), a2: {a1: '\n - Print help\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'version'), a2: {a1: '\n - Print version\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'config'), a2: {a1: ' {', a2: {a1: Help_n__4274_1022_argument($0, '<property>'), a2: {a1: '} [', a2: {a1: Help_n__4274_1022_argument($0, '<value>'), a2: {a1: ']\n - Get or set the value of a configuration property. Not all properties\n can be set and read via this subcommand.\n ', a2: {a1: Help_n__4274_1022_argument($0, 'properties'), a2: {a1: ': ', a2: {a1: Data_String_Extra_join(', ', csegen_77(), Prelude_Interfaces_x3cx24x3e(csegen_119(), $4b => Help_n__4274_1020_option($0, $4b), Data_Config_settableProps())), a2: {a1: '.\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'sync'), a2: {a1: '\n - Synchronize local config with information from GitHub.\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'branch'), a2: {a1: '\n - Print the GitHub URI for the currently checked out branch.\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'pr'), a2: {a1: '\n - Identify an existing PR or create a new one for the current branch.\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'contribute'), a2: {a1: ' [', a2: {a1: Help_n__4274_1022_argument($0, '-c/--checkout'), a2: {a1: '] [', a2: {a1: Help_n__4274_1022_argument($0, '-<num>'), a2: {a1: ']\n - Contribute to an open PR. Prints a URL. Prioritizes PRs you are\n requested to review but will also return other PRs.\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'reflect'), a2: {a1: '\n - Reflect on the current state of ones own PRs and review requests.\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'list'), a2: {a1: ' {', a2: {a1: Help_n__4274_1022_argument($0, '<team-slug>'), a2: {a1: '}\n - List the members of the given GitHub Team.\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'graph'), a2: {a1: ' {', a2: {a1: Help_n__4274_1022_argument($0, '<team-slug>'), a2: {a1: '}\n - Graph the relative review workload of the members of the given GitHub Team.\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'assign'), a2: {a1: ' {', a2: {a1: Help_n__4274_1022_argument($0, '<team-slug>'), a2: {a1: ' | ', a2: {a1: Help_n__4274_1022_argument($0, '+<user-login>'), a2: {a1: '} [...]\n - Assign the given team(s) and one lucky member from one of those teams\n to review the PR for the current branch.\n \n Also assign any users with logins specified. You specify these\n additional users by prefixing their logins with \'+\'.\n \n', a2: {a1: Help_n__4274_1023_heading($0, 'Bash Completion'), a2: {a1: ':\n You can set up bash completion by adding the following to your resource\n or bash profile:\n \n ', a2: {a1: Help_n__4274_1024_shell($0, 'eval \"$(harmony --bash-completion-script)\"'), a2: {a1: '\n \n Zsh users will also need to have the following in their resource or\n zsh profile before the above eval:\n \n ', a2: {a1: Help_n__4274_1024_shell($0, 'autoload -U +X compinit && compinit'), a2: {a1: '\n ', a2: {a1: Help_n__4274_1024_shell($0, 'autoload -U +X bashcompinit && bashcompinit'), a2: {a1: '\n ', a2: {h: 0}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}});
|
|
8095
|
+
return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'harmony ', a2: {a1: Help_n__4274_1021_subcommand($0, '<subcommand>'), a2: {a1: '\n\n', a2: {a1: Help_n__4274_1023_heading($0, 'Subcommands'), a2: {a1: ':\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'help'), a2: {a1: '\n - Print help\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'version'), a2: {a1: '\n - Print version\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'config'), a2: {a1: ' {', a2: {a1: Help_n__4274_1022_argument($0, '<property>'), a2: {a1: '} [', a2: {a1: Help_n__4274_1022_argument($0, '<value>'), a2: {a1: ']\n - Get or set the value of a configuration property. Not all properties\n can be set and read via this subcommand.\n ', a2: {a1: Help_n__4274_1022_argument($0, 'properties'), a2: {a1: ': ', a2: {a1: Data_String_Extra_join(', ', csegen_77(), Prelude_Interfaces_x3cx24x3e(csegen_119(), $4b => Help_n__4274_1020_option($0, $4b), Data_Config_settableProps())), a2: {a1: '.\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'sync'), a2: {a1: '\n - Synchronize local config with information from GitHub.\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'branch'), a2: {a1: '\n - Print the GitHub URI for the currently checked out branch.\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'pr'), a2: {a1: '\n - Identify an existing PR or create a new one for the current branch.\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'contribute'), a2: {a1: ' [', a2: {a1: Help_n__4274_1022_argument($0, '-c/--checkout'), a2: {a1: '] [', a2: {a1: Help_n__4274_1022_argument($0, '-<num>'), a2: {a1: ']\n - Contribute to an open PR. Prints a URL. Prioritizes PRs you are\n requested to review but will also return other PRs.\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'whoami'), a2: {a1: '\n - Print information about the configured and authenticated user.\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'reflect'), a2: {a1: '\n - Reflect on the current state of ones own PRs and review requests.\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'list'), a2: {a1: ' {', a2: {a1: Help_n__4274_1022_argument($0, '<team-slug>'), a2: {a1: '}\n - List the members of the given GitHub Team.\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'graph'), a2: {a1: ' {', a2: {a1: Help_n__4274_1022_argument($0, '<team-slug>'), a2: {a1: '}\n - Graph the relative review workload of the members of the given GitHub Team.\n ', a2: {a1: Help_n__4274_1021_subcommand($0, 'assign'), a2: {a1: ' {', a2: {a1: Help_n__4274_1022_argument($0, '<team-slug>'), a2: {a1: ' | ', a2: {a1: Help_n__4274_1022_argument($0, '+<user-login>'), a2: {a1: '} [...]\n - Assign the given team(s) and one lucky member from one of those teams\n to review the PR for the current branch.\n \n Also assign any users with logins specified. You specify these\n additional users by prefixing their logins with \'+\'.\n \n', a2: {a1: Help_n__4274_1023_heading($0, 'Bash Completion'), a2: {a1: ':\n You can set up bash completion by adding the following to your resource\n or bash profile:\n \n ', a2: {a1: Help_n__4274_1024_shell($0, 'eval \"$(harmony --bash-completion-script)\"'), a2: {a1: '\n \n Zsh users will also need to have the following in their resource or\n zsh profile before the above eval:\n \n ', a2: {a1: Help_n__4274_1024_shell($0, 'autoload -U +X compinit && compinit'), a2: {a1: '\n ', a2: {a1: Help_n__4274_1024_shell($0, 'autoload -U +X bashcompinit && bashcompinit'), a2: {a1: '\n ', a2: {h: 0}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}});
|
|
8040
8096
|
}
|
|
8041
8097
|
|
|
8042
8098
|
function Config_with__getConfig_5595($0, $1, $2, $3, $4) {
|
|
@@ -8097,7 +8153,7 @@ function Config_case__parseGitHubURIx2cparseSuffix_5148($0, $1, $2) {
|
|
|
8097
8153
|
return Prelude_Types_x3ex3ex3d_Monad_Maybe({a1: Data_String_split($9 => Prelude_EqOrd_x3dx3d_Eq_Char($9, '/'), $2.a1)}, $e);
|
|
8098
8154
|
}
|
|
8099
8155
|
|
|
8100
|
-
function
|
|
8156
|
+
function Config_n__5884_5646_yesUnlessNo($0, $1, $2, $3, $4) {
|
|
8101
8157
|
switch($4) {
|
|
8102
8158
|
case 'n': return 0;
|
|
8103
8159
|
case 'N': return 0;
|
|
@@ -8105,35 +8161,35 @@ function Config_n__5880_5646_yesUnlessNo($0, $1, $2, $3, $4) {
|
|
|
8105
8161
|
}
|
|
8106
8162
|
}
|
|
8107
8163
|
|
|
8108
|
-
function
|
|
8164
|
+
function Config_n__5528_5264_update($0, $1, $2, $3, $4) {
|
|
8109
8165
|
return $0(undefined)(undefined)($c => Prelude_Basics_flip($2, $3, $c))($1($4));
|
|
8110
8166
|
}
|
|
8111
8167
|
|
|
8112
|
-
function
|
|
8113
|
-
return Prelude_Types_map_Functor_Maybe(
|
|
8168
|
+
function Config_n__5884_5648_repo($0, $1, $2, $3, $4) {
|
|
8169
|
+
return Prelude_Types_map_Functor_Maybe(csegen_531(), $4);
|
|
8114
8170
|
}
|
|
8115
8171
|
|
|
8116
|
-
function
|
|
8172
|
+
function Config_n__5396_5127_parseSuffix($0, $1) {
|
|
8117
8173
|
return Config_case__parseGitHubURIx2cparseSuffix_5148($0, $1, Data_String_break$($8 => Prelude_EqOrd_x3dx3d_Eq_Char($8, '.'), $1));
|
|
8118
8174
|
}
|
|
8119
8175
|
|
|
8120
|
-
function
|
|
8121
|
-
return Prelude_Interfaces_x3ex3dx3e(csegen_42(), $6 => Config_dropPrefixx27('git@github.com:', $6), $b =>
|
|
8176
|
+
function Config_n__5396_5129_parseSSH($0, $1) {
|
|
8177
|
+
return Prelude_Interfaces_x3ex3dx3e(csegen_42(), $6 => Config_dropPrefixx27('git@github.com:', $6), $b => Config_n__5396_5127_parseSuffix($0, $b), $1);
|
|
8122
8178
|
}
|
|
8123
8179
|
|
|
8124
|
-
function
|
|
8125
|
-
return Prelude_Interfaces_x3ex3dx3e(csegen_42(), $6 => Config_dropPrefixx27('https://github/com/', $6), $b =>
|
|
8180
|
+
function Config_n__5396_5128_parseHTTPS($0, $1) {
|
|
8181
|
+
return Prelude_Interfaces_x3ex3dx3e(csegen_42(), $6 => Config_dropPrefixx27('https://github/com/', $6), $b => Config_n__5396_5127_parseSuffix($0, $b), $1);
|
|
8126
8182
|
}
|
|
8127
8183
|
|
|
8128
|
-
function
|
|
8184
|
+
function Config_n__5528_5263_parseBool($0) {
|
|
8129
8185
|
return Config_with__propSettersx2cparseBool_5272($0, Data_String_toLower($0));
|
|
8130
8186
|
}
|
|
8131
8187
|
|
|
8132
|
-
function
|
|
8133
|
-
return Prelude_Types_map_Functor_Maybe(
|
|
8188
|
+
function Config_n__5884_5647_org($0, $1, $2, $3, $4) {
|
|
8189
|
+
return Prelude_Types_map_Functor_Maybe(csegen_535(), $4);
|
|
8134
8190
|
}
|
|
8135
8191
|
|
|
8136
|
-
function
|
|
8192
|
+
function Config_n__5884_5645_orIfEmpty($0, $1, $2, $3, $4, $5) {
|
|
8137
8193
|
switch($4.h) {
|
|
8138
8194
|
case 0: return $5;
|
|
8139
8195
|
case undefined: {
|
|
@@ -8145,20 +8201,20 @@ function Config_n__5880_5645_orIfEmpty($0, $1, $2, $3, $4, $5) {
|
|
|
8145
8201
|
}
|
|
8146
8202
|
}
|
|
8147
8203
|
|
|
8148
|
-
function
|
|
8204
|
+
function Config_n__5222_4962_oneDayAgo($0, $1, $2) {
|
|
8149
8205
|
return $2.a1.a2(undefined)(undefined)(System_time($2))(now => $2.a1.a1.a2(undefined)(Prelude_Cast_cast_Cast_Integer_Bits32((now-86400n))));
|
|
8150
8206
|
}
|
|
8151
8207
|
|
|
8152
|
-
function
|
|
8208
|
+
function Config_n__5884_5649_enterForDefaultStr($0, $1, $2, $3, $4) {
|
|
8153
8209
|
return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: ' (ENTER for default: ', a2: {a1: $4, a2: {a1: ')', a2: {h: 0}}}});
|
|
8154
8210
|
}
|
|
8155
8211
|
|
|
8156
|
-
function
|
|
8212
|
+
function Config_n__5349_5080_dropx27($0, $1) {
|
|
8157
8213
|
return Config_with__dropPrefixx27x2cdropx27_5088($0, $1, Data_List_PrefixSuffix_dropPrefix($8 => $9 => Decidable_Equality_decEq_DecEq_Char($8, $9), Prelude_Types_fastUnpack($0), $1));
|
|
8158
8214
|
}
|
|
8159
8215
|
|
|
8160
|
-
function
|
|
8161
|
-
return Data_Maybe_fromMaybe(() => '', Prelude_Types_map_Functor_Maybe($b =>
|
|
8216
|
+
function Config_n__5884_5650_defaultStr($0, $1, $2, $3, $4, $5) {
|
|
8217
|
+
return Data_Maybe_fromMaybe(() => '', Prelude_Types_map_Functor_Maybe($b => Config_n__5884_5649_enterForDefaultStr($0, $1, $2, $3, $4($b)), $5));
|
|
8162
8218
|
}
|
|
8163
8219
|
|
|
8164
8220
|
function Config_show_Show_ConfigError($0) {
|
|
@@ -8185,7 +8241,7 @@ function Config_syncIfOld($0, $1, $2, $3) {
|
|
|
8185
8241
|
case 0: return $1a => Data_Promise_pure_Applicative_Promise($1, $d, $1a);
|
|
8186
8242
|
}
|
|
8187
8243
|
};
|
|
8188
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(
|
|
8244
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(Config_n__5222_4962_oneDayAgo($0, $1, csegen_21()), $b, $2, $3);
|
|
8189
8245
|
}
|
|
8190
8246
|
|
|
8191
8247
|
function Config_syncConfig($0, $1, $2, $3, $4) {
|
|
@@ -8193,9 +8249,9 @@ function Config_syncConfig($0, $1, $2, $3, $4) {
|
|
|
8193
8249
|
const $14 = orgMembers => $15 => $16 => {
|
|
8194
8250
|
const $1a = updatedAt => {
|
|
8195
8251
|
const $1b = {a1: updatedAt, a2: $0.a2, a3: $0.a3, a4: $0.a4, a5: $0.a5, a6: $0.a6, a7: teamSlugs, a8: orgMembers, a9: $0.a9};
|
|
8196
|
-
return Prelude_Interfaces_x3ex3e(csegen_15(), $2a => $2b => Data_Promise_map_Functor_Promise($2e => (undefined), $30 => $31 => Config_writeConfig($1b, $30, $31), $2a, $2b), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_Interfaces_when(csegen_9(), $2, () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), 'Your updated configuration is:'), () => Prelude_IO_printLn(
|
|
8252
|
+
return Prelude_Interfaces_x3ex3e(csegen_15(), $2a => $2b => Data_Promise_map_Functor_Promise($2e => (undefined), $30 => $31 => Config_writeConfig($1b, $30, $31), $2a, $2b), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_Interfaces_when(csegen_9(), $2, () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), 'Your updated configuration is:'), () => Prelude_IO_printLn(csegen_542(), $0))), () => $50 => $51 => Data_Promise_pure_Applicative_Promise($1b, $50, $51)));
|
|
8197
8253
|
};
|
|
8198
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(
|
|
8254
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(csegen_538(), $1a, $15, $16);
|
|
8199
8255
|
};
|
|
8200
8256
|
return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listOrgMembers($1, $0.a2), $14, $c, $d);
|
|
8201
8257
|
};
|
|
@@ -8207,7 +8263,7 @@ function Config_setConfig($0, $1, $2) {
|
|
|
8207
8263
|
}
|
|
8208
8264
|
|
|
8209
8265
|
const Config_propSetters = __lazy(function () {
|
|
8210
|
-
return {a1: {a1: 'assignTeams', a2: $3 => $4 =>
|
|
8266
|
+
return {a1: {a1: 'assignTeams', a2: $3 => $4 => Config_n__5528_5264_update(csegen_18(), $9 => Config_n__5528_5263_parseBool($9), b => $d => ({a1: $d.a1, a2: $d.a2, a3: $d.a3, a4: $d.a4, a5: b, a6: $d.a6, a7: $d.a7, a8: $d.a8, a9: $d.a9}), $3, $4)}, a2: {a1: {a1: 'commentOnAssign', a2: $1e => $1f => Config_n__5528_5264_update(csegen_18(), $24 => Config_n__5528_5263_parseBool($24), b => $28 => ({a1: $28.a1, a2: $28.a2, a3: $28.a3, a4: $28.a4, a5: $28.a5, a6: b, a7: $28.a7, a8: $28.a8, a9: $28.a9}), $1e, $1f)}, a2: {h: 0}}};
|
|
8211
8267
|
});
|
|
8212
8268
|
|
|
8213
8269
|
const Config_propGetters = __lazy(function () {
|
|
@@ -8215,7 +8271,7 @@ const Config_propGetters = __lazy(function () {
|
|
|
8215
8271
|
});
|
|
8216
8272
|
|
|
8217
8273
|
function Config_parseGitHubURI($0) {
|
|
8218
|
-
return Prelude_Types_x3cx7cx3e_Alternative_Maybe(
|
|
8274
|
+
return Prelude_Types_x3cx7cx3e_Alternative_Maybe(Config_n__5396_5128_parseHTTPS($0, $0), () => Config_n__5396_5129_parseSSH($0, $0));
|
|
8219
8275
|
}
|
|
8220
8276
|
|
|
8221
8277
|
function Config_loadOrCreateConfig($0, $1, $2, $3, $4, $5) {
|
|
@@ -8258,14 +8314,14 @@ function Config_loadConfig($0, $1, $2) {
|
|
|
8258
8314
|
}
|
|
8259
8315
|
};
|
|
8260
8316
|
const $a = {a1: $b, a2: a => $13 => ({h: 1, a1: $13}), a3: $15};
|
|
8261
|
-
const $9 = {a1: $a, a2:
|
|
8317
|
+
const $9 = {a1: $a, a2: csegen_278(), a3: csegen_279()};
|
|
8262
8318
|
const $24 = b => a => func => $25 => {
|
|
8263
8319
|
switch($25.h) {
|
|
8264
8320
|
case 0: return {h: 0, a1: $25.a1};
|
|
8265
8321
|
case 1: return {h: 1, a1: func($25.a1)};
|
|
8266
8322
|
}
|
|
8267
8323
|
};
|
|
8268
|
-
const $23 = {a1: $24, a2:
|
|
8324
|
+
const $23 = {a1: $24, a2: csegen_457(), a3: csegen_461()};
|
|
8269
8325
|
return Prelude_Interfaces_Monad_x3ex3ex3d_Monad_Composex28x28x2ex20x24mx29x20x24tx29($0.a1, $9, $23, $4, $5);
|
|
8270
8326
|
};
|
|
8271
8327
|
const $39 = $3a => {
|
|
@@ -8327,17 +8383,17 @@ function Config_findConfig($0, $1, $2) {
|
|
|
8327
8383
|
}
|
|
8328
8384
|
|
|
8329
8385
|
function Config_dropPrefixx27($0, $1) {
|
|
8330
|
-
return Prelude_Types_map_Functor_Maybe($4 => Prelude_Types_fastPack($4),
|
|
8386
|
+
return Prelude_Types_map_Functor_Maybe($4 => Prelude_Types_fastPack($4), Config_n__5349_5080_dropx27($0, Prelude_Types_fastUnpack($1)));
|
|
8331
8387
|
}
|
|
8332
8388
|
|
|
8333
8389
|
function Config_createConfig($0, $1, $2, $3) {
|
|
8334
8390
|
return Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Creating a new configuration (storing in ', a2: {a1: Data_Config_filename(), a2: {a1: ')...', a2: {h: 0}}}})), () => $1a => $1b => {
|
|
8335
8391
|
const $3a = defaultOrgAndRepo => {
|
|
8336
|
-
const $3b =
|
|
8392
|
+
const $3b = Config_n__5884_5650_defaultStr($0, $1, $3, $2, csegen_535(), defaultOrgAndRepo);
|
|
8337
8393
|
return Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'What GitHub org would you like to use harmony for', a2: {a1: $3b, a2: {a1: '?', a2: {h: 0}}}})), () => $59 => $5a => {
|
|
8338
8394
|
const $73 = org => {
|
|
8339
|
-
const $74 =
|
|
8340
|
-
return Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'What repository would you like to use harmony for', a2: {a1: $74, a2: {a1: '?', a2: {h: 0}}}})), () => $92 => $93 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $9a =>
|
|
8395
|
+
const $74 = Config_n__5884_5650_defaultStr($0, $1, $3, $2, csegen_531(), defaultOrgAndRepo);
|
|
8396
|
+
return Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'What repository would you like to use harmony for', a2: {a1: $74, a2: {a1: '?', a2: {h: 0}}}})), () => $92 => $93 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $9a => Config_n__5884_5645_orIfEmpty($0, $1, $3, $2, Config_n__5884_5648_repo($0, $1, $3, $2, defaultOrgAndRepo), Data_String_trim($9a)), csegen_407()), repo => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStr(csegen_21(), 'Would you like harmony to comment when it assigns reviewers? [Y/n] '), () => $b6 => $b7 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $be => Config_n__5884_5646_yesUnlessNo($0, $1, $3, $2, Data_String_trim($be)), csegen_407()), commentOnAssign => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStr(csegen_21(), 'Would you like harmony to assign teams in addition to individuals when it assigns reviewers? [Y/n] '), () => $d3 => $d4 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $db => Config_n__5884_5646_yesUnlessNo($0, $1, $3, $2, Data_String_trim($db)), csegen_407()), assignTeams => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), 'Creating config...'), () => $f0 => $f1 => {
|
|
8341
8397
|
const $fc = mainBranch => $fd => $fe => {
|
|
8342
8398
|
const $102 = updatedAt => {
|
|
8343
8399
|
const $103 = {a1: Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: './', a2: {a1: Data_Config_filename(), a2: {h: 0}}}), a2: $2, a3: $3};
|
|
@@ -8345,19 +8401,19 @@ function Config_createConfig($0, $1, $2, $3) {
|
|
|
8345
8401
|
const $119 = teamSlugs => $11a => $11b => {
|
|
8346
8402
|
const $121 = orgMembers => {
|
|
8347
8403
|
const $122 = {a1: updatedAt, a2: org, a3: repo, a4: mainBranch, a5: assignTeams, a6: commentOnAssign, a7: teamSlugs, a8: orgMembers, a9: $103};
|
|
8348
|
-
return Prelude_Interfaces_x3ex3e(csegen_15(), $130 => $131 => Data_Promise_map_Functor_Promise($134 => (undefined), $136 => $137 => Config_writeConfig($122, $136, $137), $130, $131), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), 'Your new configuration is:'), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_printLn(
|
|
8404
|
+
return Prelude_Interfaces_x3ex3e(csegen_15(), $130 => $131 => Data_Promise_map_Functor_Promise($134 => (undefined), $136 => $137 => Config_writeConfig($122, $136, $137), $130, $131), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), 'Your new configuration is:'), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_printLn(csegen_542(), $122), () => $151 => $152 => Data_Promise_pure_Applicative_Promise($122, $151, $152))));
|
|
8349
8405
|
};
|
|
8350
8406
|
return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listOrgMembers($1, org), $121, $11a, $11b);
|
|
8351
8407
|
};
|
|
8352
8408
|
return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listTeams($1, org), $119, $112, $113);
|
|
8353
8409
|
};
|
|
8354
8410
|
};
|
|
8355
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(
|
|
8411
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(csegen_538(), $102, $fd, $fe);
|
|
8356
8412
|
};
|
|
8357
8413
|
return Data_Promise_x3ex3ex3d_Monad_Promise($f4 => $f5 => FFI_GitHub_getRepoDefaultBranch($1, org, repo, $f4, $f5), $fc, $f0, $f1);
|
|
8358
8414
|
}), $d3, $d4)), $b6, $b7)), $92, $93));
|
|
8359
8415
|
};
|
|
8360
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $61 =>
|
|
8416
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $61 => Config_n__5884_5645_orIfEmpty($0, $1, $3, $2, Config_n__5884_5647_org($0, $1, $3, $2, defaultOrgAndRepo), Data_String_trim($61)), csegen_407()), $73, $59, $5a);
|
|
8361
8417
|
});
|
|
8362
8418
|
};
|
|
8363
8419
|
return Data_Promise_x3ex3ex3d_Monad_Promise($1e => $1f => Data_Promise_x3cx7cx3e_Alternative_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $26 => Config_parseGitHubURI($26), $2a => $2b => FFI_Git_remoteURI($0, 'origin', $2a, $2b)), () => $32 => $33 => Data_Promise_pure_Applicative_Promise({h: 0}, $32, $33), $1e, $1f), $3a, $1a, $1b);
|
|
@@ -8402,7 +8458,7 @@ function Data_List_PrefixSuffix_dropPrefix($0, $1, $2) {
|
|
|
8402
8458
|
}
|
|
8403
8459
|
}
|
|
8404
8460
|
|
|
8405
|
-
function
|
|
8461
|
+
function BashCompletion_n__3745_1119_slugsOrLogins($0, $1, $2) {
|
|
8406
8462
|
switch(Data_String_isPrefixOf('+', $1)) {
|
|
8407
8463
|
case 1: return Prelude_Interfaces_x3cx24x3e(csegen_119(), $b => ('+'+$b), $2.a8);
|
|
8408
8464
|
case 0: return $2.a7;
|
|
@@ -8432,7 +8488,7 @@ function BashCompletion_opts($0, $1, $2) {
|
|
|
8432
8488
|
default: {
|
|
8433
8489
|
switch($1) {
|
|
8434
8490
|
case '--': return $0.a7;
|
|
8435
|
-
default: return Prelude_Types_List_filter($1f => Data_String_isPrefixOf($1, $1f),
|
|
8491
|
+
default: return Prelude_Types_List_filter($1f => Data_String_isPrefixOf($1, $1f), BashCompletion_n__3745_1119_slugsOrLogins($2, $1, $0));
|
|
8436
8492
|
}
|
|
8437
8493
|
}
|
|
8438
8494
|
}
|
|
@@ -8445,7 +8501,7 @@ function BashCompletion_opts($0, $1, $2) {
|
|
|
8445
8501
|
default: {
|
|
8446
8502
|
switch($1) {
|
|
8447
8503
|
case '--': return $0.a7;
|
|
8448
|
-
default: return Prelude_Types_List_filter($35 => Data_String_isPrefixOf($1, $35),
|
|
8504
|
+
default: return Prelude_Types_List_filter($35 => Data_String_isPrefixOf($1, $35), BashCompletion_n__3745_1119_slugsOrLogins($2, $1, $0));
|
|
8449
8505
|
}
|
|
8450
8506
|
}
|
|
8451
8507
|
}
|
|
@@ -8470,7 +8526,7 @@ function BashCompletion_opts($0, $1, $2) {
|
|
|
8470
8526
|
default: {
|
|
8471
8527
|
switch($1) {
|
|
8472
8528
|
case '--': return $0.a7;
|
|
8473
|
-
default: return Prelude_Types_List_filter($57 => Data_String_isPrefixOf($1, $57),
|
|
8529
|
+
default: return Prelude_Types_List_filter($57 => Data_String_isPrefixOf($1, $57), BashCompletion_n__3745_1119_slugsOrLogins($2, $1, $0));
|
|
8474
8530
|
}
|
|
8475
8531
|
}
|
|
8476
8532
|
}
|
|
@@ -8483,7 +8539,7 @@ function BashCompletion_opts($0, $1, $2) {
|
|
|
8483
8539
|
default: {
|
|
8484
8540
|
switch($1) {
|
|
8485
8541
|
case '--': return $0.a7;
|
|
8486
|
-
default: return Prelude_Types_List_filter($6d => Data_String_isPrefixOf($1, $6d),
|
|
8542
|
+
default: return Prelude_Types_List_filter($6d => Data_String_isPrefixOf($1, $6d), BashCompletion_n__3745_1119_slugsOrLogins($2, $1, $0));
|
|
8487
8543
|
}
|
|
8488
8544
|
}
|
|
8489
8545
|
}
|
|
@@ -8513,7 +8569,7 @@ function BashCompletion_cmdOpts($0, $1) {
|
|
|
8513
8569
|
switch($0) {
|
|
8514
8570
|
case '-': {
|
|
8515
8571
|
switch($1) {
|
|
8516
|
-
case 'contribute': return
|
|
8572
|
+
case 'contribute': return csegen_567();
|
|
8517
8573
|
default: {
|
|
8518
8574
|
switch($1) {
|
|
8519
8575
|
case 'contribute': {
|
|
@@ -8529,7 +8585,7 @@ function BashCompletion_cmdOpts($0, $1) {
|
|
|
8529
8585
|
}
|
|
8530
8586
|
case '--': {
|
|
8531
8587
|
switch($1) {
|
|
8532
|
-
case 'contribute': return
|
|
8588
|
+
case 'contribute': return csegen_567();
|
|
8533
8589
|
default: {
|
|
8534
8590
|
switch($1) {
|
|
8535
8591
|
case 'contribute': {
|
|
@@ -8573,7 +8629,7 @@ function BashCompletion_cmdOpts($0, $1) {
|
|
|
8573
8629
|
switch($0) {
|
|
8574
8630
|
case '-': {
|
|
8575
8631
|
switch($1) {
|
|
8576
|
-
case 'contribute': return
|
|
8632
|
+
case 'contribute': return csegen_567();
|
|
8577
8633
|
default: {
|
|
8578
8634
|
switch($1) {
|
|
8579
8635
|
case 'contribute': {
|
|
@@ -8589,7 +8645,7 @@ function BashCompletion_cmdOpts($0, $1) {
|
|
|
8589
8645
|
}
|
|
8590
8646
|
case '--': {
|
|
8591
8647
|
switch($1) {
|
|
8592
|
-
case 'contribute': return
|
|
8648
|
+
case 'contribute': return csegen_567();
|
|
8593
8649
|
default: {
|
|
8594
8650
|
switch($1) {
|
|
8595
8651
|
case 'contribute': {
|
|
@@ -8622,7 +8678,7 @@ function BashCompletion_cmdOpts($0, $1) {
|
|
|
8622
8678
|
}
|
|
8623
8679
|
|
|
8624
8680
|
const BashCompletion_allRootCmds = __lazy(function () {
|
|
8625
|
-
return {a1: 'assign', a2: {a1: 'branch', a2: {a1: 'config', a2: {a1: 'contribute', a2: {a1: 'graph', a2: {a1: 'help', a2: {a1: 'list', a2: {a1: 'pr', a2: {a1: 'reflect', a2: {a1: 'sync', a2: {a1: 'version', a2: {h: 0}}}}}}}}}}}};
|
|
8681
|
+
return {a1: 'assign', a2: {a1: 'branch', a2: {a1: 'config', a2: {a1: 'contribute', a2: {a1: 'graph', a2: {a1: 'help', a2: {a1: 'list', a2: {a1: 'pr', a2: {a1: 'reflect', a2: {a1: 'sync', a2: {a1: 'version', a2: {a1: 'whoami', a2: {h: 0}}}}}}}}}}}}};
|
|
8626
8682
|
});
|
|
8627
8683
|
|
|
8628
8684
|
function AppVersion_printVersion($0) {
|
|
@@ -8630,7 +8686,7 @@ function AppVersion_printVersion($0) {
|
|
|
8630
8686
|
}
|
|
8631
8687
|
|
|
8632
8688
|
const AppVersion_appVersion = __lazy(function () {
|
|
8633
|
-
return '0.
|
|
8689
|
+
return '0.7.0';
|
|
8634
8690
|
});
|
|
8635
8691
|
|
|
8636
8692
|
|