promaster 0.1.0 → 1.1.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.
package/bin/promaster.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { runList } from "../src/commands/list.js";
3
3
  import { HttpError } from "../src/github.js";
4
+ import { printBanner } from "../src/banner.js";
4
5
 
5
6
  const USAGE = `promaster - browse & download Markdown from a GitHub repo
6
7
 
@@ -12,6 +13,7 @@ Config:
12
13
  GITHUB_TOKEN=... Optional, raises the GitHub API rate limit.`;
13
14
 
14
15
  async function main() {
16
+ printBanner();
15
17
  const cmd = process.argv[2];
16
18
  switch (cmd) {
17
19
  case "list":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promaster",
3
- "version": "0.1.0",
3
+ "version": "1.1.0",
4
4
  "description": "Interactive CLI to browse and download Markdown (blog/memory/books) from a public GitHub repo.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/banner.js ADDED
@@ -0,0 +1,13 @@
1
+ const BANNER = String.raw`
2
+ ████ █████ ███ ███ █████ ███ █ █ ███ █████ █████
3
+ █ █ █ █ █ █ █ █ █ █ █ █ █
4
+ ████ ████ █████ █ █ █ █ █ █ █ ████
5
+ █ █ █ █ █ █ █ █ █ █ █ █ █
6
+ █ █ █████ █ █ ███ █ ███ █ ███ █ █████
7
+
8
+ By Javid Salimov | Software Engineer | https://github.com/javidselimov
9
+ `;
10
+
11
+ export function printBanner() {
12
+ console.log(BANNER);
13
+ }