@blogic-cz/agent-tools 0.14.27 → 0.14.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/gh-tool/repo.ts +19 -6
package/package.json
CHANGED
package/src/gh-tool/repo.ts
CHANGED
|
@@ -89,12 +89,25 @@ const searchOrgCode = Effect.fn("repo.searchOrgCode")(function* (opts: {
|
|
|
89
89
|
// CLI Commands
|
|
90
90
|
// ---------------------------------------------------------------------------
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
92
|
+
const repoOption = Flag.string("repo").pipe(
|
|
93
|
+
Flag.withDescription("Target repository profile name or owner/name"),
|
|
94
|
+
Flag.optional,
|
|
95
|
+
);
|
|
96
|
+
|
|
97
|
+
export const repoInfoCommand = Command.make(
|
|
98
|
+
"info",
|
|
99
|
+
{ format: formatOption, repo: repoOption },
|
|
100
|
+
({ format, repo }) =>
|
|
101
|
+
Effect.gen(function* () {
|
|
102
|
+
const gh = yield* GitHubService;
|
|
103
|
+
yield* gh.withRepoTarget(
|
|
104
|
+
Option.getOrNull(repo),
|
|
105
|
+
Effect.gen(function* () {
|
|
106
|
+
const info = yield* gh.getRepoInfo();
|
|
107
|
+
yield* logFormatted(info, format);
|
|
108
|
+
}),
|
|
109
|
+
);
|
|
110
|
+
}),
|
|
98
111
|
).pipe(Command.withDescription("Show repository information (owner, name, default branch, URL)"));
|
|
99
112
|
|
|
100
113
|
export const repoListCommand = Command.make(
|