@yaakapp/cli 0.0.11 → 0.0.13

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/install.cjs CHANGED
@@ -2,6 +2,7 @@ const fs = require("fs");
2
2
  const path = require("path");
3
3
  const zlib = require("zlib");
4
4
  const https = require("https");
5
+ const {execSync} = require("child_process");
5
6
 
6
7
  // Adjust the version you want to install. You can also make this dynamic.
7
8
  const VERSION = "0.0.10";
@@ -10,7 +11,8 @@ const VERSION = "0.0.10";
10
11
  const binaryName = process.platform === "win32" ? "yaakcli.exe" : "yaakcli";
11
12
 
12
13
  // Compute the path we want to emit the binary to
13
- const binaryDstPath = path.join(__dirname, "yaakcli", binaryName);
14
+ const binaryInstallationPath = path.join(execSync("npm prefix -g").toString().trim(), "bin", binaryName)
15
+ fs.mkdirSync(path.dirname(binaryInstallationPath), {recursive: true});
14
16
 
15
17
  function makeRequest(url) {
16
18
  return new Promise((resolve, reject) => {
@@ -82,31 +84,31 @@ async function downloadBinary() {
82
84
  console.log(`Extracting ${tarballDownloadBuffer.length}`);
83
85
  const tarballBuffer = zlib.unzipSync(tarballDownloadBuffer);
84
86
 
85
- const binaryDir = path.dirname(binaryDstPath);
86
- console.log(`Creating dir ${binaryDir}`);
87
- fs.mkdirSync(binaryDir, {recursive: true});
87
+ const dir = path.dirname(binaryInstallationPath);
88
+ console.log(`Creating dir ${dir}`);
89
+ fs.mkdirSync(dir, {recursive: true});
88
90
 
89
91
  // Extract binary from package and write to disk
90
- console.log(`Writing tarball to ${binaryDstPath}`);
92
+ console.log(`Writing tarball to ${binaryInstallationPath}`);
91
93
  fs.writeFileSync(
92
- binaryDstPath,
94
+ binaryInstallationPath,
93
95
  extractFileFromTarball(tarballBuffer, binaryName)
94
96
  );
95
97
 
96
- console.log(`Extracting tarball to ${binaryDstPath}`);
98
+ console.log(`Extracting tarball to ${binaryInstallationPath}`);
97
99
  // Make binary executable
98
- fs.chmodSync(binaryDstPath, "755");
100
+ fs.chmodSync(binaryInstallationPath, "755");
99
101
 
100
102
  console.log("Done");
101
103
  }
102
104
 
103
105
  function isPlatformSpecificPackageInstalled() {
104
- return fs.existsSync(binaryDstPath)
106
+ return fs.existsSync(binaryInstallationPath)
105
107
  }
106
108
 
107
109
  // Skip downloading the binary if it was already installed via optionalDependencies
108
110
  if (!isPlatformSpecificPackageInstalled()) {
109
111
  downloadBinary().catch(console.error);
110
112
  } else {
111
- console.log(`yaakcli already exists at ${binaryDstPath}`);
113
+ console.log(`yaakcli already exists at ${binaryInstallationPath}`);
112
114
  }
package/package.json CHANGED
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "name": "@yaakapp/cli",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
+ "files": [
5
+ "install.cjs",
6
+ "bin"
7
+ ],
4
8
  "scripts": {
5
9
  "postinstall": "node ./install.cjs"
6
10
  },
@@ -1,27 +0,0 @@
1
- name: Release
2
-
3
- on:
4
- push:
5
- tags:
6
- - 'v*'
7
-
8
- permissions:
9
- contents: write
10
-
11
- jobs:
12
- build:
13
- runs-on: macos-latest
14
- name: Release
15
- steps:
16
- - uses: actions/checkout@v4
17
- - uses: actions/setup-go@v5
18
- with:
19
- go-version: 1.22
20
- - run: go test ./...
21
- - uses: goreleaser/goreleaser-action@v6
22
- with:
23
- distribution: goreleaser
24
- version: latest
25
- args: release --clean
26
- env:
27
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package/.goreleaser.yaml DELETED
@@ -1,7 +0,0 @@
1
- version: 2
2
-
3
- builds:
4
- - binary: yaakcli
5
- main: ./cmd/yaakcli/main.go
6
- env:
7
- - CGO_ENABLED=0
package/bin/yaakcli DELETED
Binary file
@@ -1,11 +0,0 @@
1
- package main
2
-
3
- import (
4
- "github.com/yaakapp/yaakcli"
5
- )
6
-
7
- var version = "dev"
8
-
9
- func main() {
10
- yaakcli.Execute(version)
11
- }
package/cmd_build.go DELETED
@@ -1,37 +0,0 @@
1
- package yaakcli
2
-
3
- import (
4
- "fmt"
5
- "github.com/evanw/esbuild/pkg/api"
6
- "github.com/spf13/cobra"
7
- "os"
8
- )
9
-
10
- var buildCmd = &cobra.Command{
11
- Use: "build",
12
- Args: cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs),
13
- Run: func(cmd *cobra.Command, args []string) {
14
- options := api.BuildOptions{
15
- EntryPoints: []string{args[0]},
16
- Outfile: "build/index.js",
17
- Platform: api.PlatformNode,
18
- Bundle: true, // Inline dependencies
19
- Write: true, // Write to disk
20
- Format: api.FormatCommonJS,
21
- LogLevel: api.LogLevelInfo,
22
- }
23
-
24
- if os.Getenv("BUILD_PLATFORM") == "browser" {
25
- println("Set build platform to browser")
26
- options.Platform = api.PlatformBrowser
27
- } else {
28
- println("Set build platform to node")
29
- }
30
-
31
- result := api.Build(options)
32
- for _, o := range result.OutputFiles {
33
- fmt.Printf("Compiled to: %s\n", o.Path)
34
- fmt.Fprintf(os.Stderr, "Compiled to: %s\n", o.Path)
35
- }
36
- },
37
- }
package/cmd_generate.go DELETED
@@ -1,81 +0,0 @@
1
- package yaakcli
2
-
3
- import (
4
- "github.com/pterm/pterm"
5
- "github.com/spf13/cobra"
6
- "os"
7
- "os/exec"
8
- "path/filepath"
9
- "strings"
10
- )
11
-
12
- var generateCmd = &cobra.Command{
13
- Use: "generate",
14
- Run: func(cmd *cobra.Command, args []string) {
15
- defaultName := RandomName()
16
- defaultPath := "./" + defaultName
17
-
18
- _ = defaultPath
19
-
20
- dst, err := pterm.DefaultInteractiveTextInput.WithDefaultValue(defaultPath).Show()
21
- checkErr(err)
22
-
23
- if dirExists(dst) {
24
- returnError("")
25
- }
26
-
27
- pterm.Println("Generating plugin to:", pterm.Magenta(dst))
28
-
29
- // Create destination directory
30
- checkErr(os.MkdirAll(dst, 0755))
31
-
32
- // Copy static files
33
- copyFile("package.json", dst, defaultName)
34
- copyFile("tsconfig.json", dst, defaultName)
35
- copyFile("src/index.ts", dst, defaultName)
36
-
37
- c := exec.Command("npm", "install")
38
- c.Dir = dst
39
- c.Stdout = os.Stdout
40
- c.Stderr = os.Stderr
41
- checkErr(c.Start())
42
- checkErr(c.Wait())
43
- },
44
- }
45
-
46
- func writeFile(path, contents string) {
47
- checkErr(os.MkdirAll(filepath.Dir(path), 0755))
48
- checkErr(os.WriteFile(path, []byte(contents), 0755))
49
- }
50
-
51
- func readFile(path string) string {
52
- pkgBytes, err := TemplateFS.ReadFile(path)
53
- checkErr(err)
54
- return string(pkgBytes)
55
- }
56
-
57
- func copyFile(relPath, dstDir, name string) {
58
- contents := readFile(filepath.Join("template", relPath))
59
- contents = strings.ReplaceAll(contents, "yaak-plugin-name", name)
60
- writeFile(filepath.Join(dstDir, relPath), contents)
61
- }
62
-
63
- func checkErr(err error) {
64
- if err == nil {
65
- return
66
- }
67
-
68
- pterm.Println(pterm.Red("Error: ", err.Error()))
69
- os.Exit(1)
70
- }
71
-
72
- func dirExists(path string) bool {
73
- if _, err := os.Stat(path); os.IsNotExist(err) {
74
- return false
75
- }
76
- return true
77
- }
78
-
79
- func returnError(msg string) {
80
- pterm.Println(pterm.Red(msg))
81
- }
package/cmd_root.go DELETED
@@ -1,37 +0,0 @@
1
- package yaakcli
2
-
3
- import (
4
- "fmt"
5
- "github.com/spf13/cobra"
6
- "os"
7
- )
8
-
9
- func rootCmd(version string) *cobra.Command {
10
- var fVersion bool
11
- cmd := &cobra.Command{
12
- Use: "plaak",
13
- Short: "Develop plugins for Yaak",
14
- Long: `Generate, build, and debug plugins for Yaak, the most intuitive desktop API client`,
15
- Run: func(cmd *cobra.Command, args []string) {
16
- if fVersion {
17
- println(version)
18
- os.Exit(0)
19
- }
20
-
21
- checkErr(cmd.Help())
22
- },
23
- }
24
- cmd.AddCommand(buildCmd)
25
- cmd.AddCommand(generateCmd)
26
-
27
- cmd.Flags().BoolVar(&fVersion, "version", false, "Source directory to read from")
28
-
29
- return cmd
30
- }
31
-
32
- func Execute(version string) {
33
- if err := rootCmd(version).Execute(); err != nil {
34
- fmt.Fprintln(os.Stderr, err)
35
- os.Exit(1)
36
- }
37
- }
package/embed.go DELETED
@@ -1,8 +0,0 @@
1
- package yaakcli
2
-
3
- import (
4
- "embed"
5
- )
6
-
7
- //go:embed all:template
8
- var TemplateFS embed.FS
package/go.mod DELETED
@@ -1,26 +0,0 @@
1
- module github.com/yaakapp/yaakcli
2
-
3
- go 1.22
4
-
5
- require (
6
- github.com/evanw/esbuild v0.21.5
7
- github.com/pterm/pterm v0.12.79
8
- github.com/spf13/cobra v1.8.1
9
- )
10
-
11
- require (
12
- atomicgo.dev/cursor v0.2.0 // indirect
13
- atomicgo.dev/keyboard v0.2.9 // indirect
14
- atomicgo.dev/schedule v0.1.0 // indirect
15
- github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
16
- github.com/gookit/color v1.5.4 // indirect
17
- github.com/inconshreveable/mousetrap v1.1.0 // indirect
18
- github.com/lithammer/fuzzysearch v1.1.8 // indirect
19
- github.com/mattn/go-runewidth v0.0.16 // indirect
20
- github.com/rivo/uniseg v0.4.7 // indirect
21
- github.com/spf13/pflag v1.0.5 // indirect
22
- github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
23
- golang.org/x/sys v0.24.0 // indirect
24
- golang.org/x/term v0.16.0 // indirect
25
- golang.org/x/text v0.16.0 // indirect
26
- )
package/go.sum DELETED
@@ -1,131 +0,0 @@
1
- atomicgo.dev/assert v0.0.2 h1:FiKeMiZSgRrZsPo9qn/7vmr7mCsh5SZyXY4YGYiYwrg=
2
- atomicgo.dev/assert v0.0.2/go.mod h1:ut4NcI3QDdJtlmAxQULOmA13Gz6e2DWbSAS8RUOmNYQ=
3
- atomicgo.dev/cursor v0.2.0 h1:H6XN5alUJ52FZZUkI7AlJbUc1aW38GWZalpYRPpoPOw=
4
- atomicgo.dev/cursor v0.2.0/go.mod h1:Lr4ZJB3U7DfPPOkbH7/6TOtJ4vFGHlgj1nc+n900IpU=
5
- atomicgo.dev/keyboard v0.2.9 h1:tOsIid3nlPLZ3lwgG8KZMp/SFmr7P0ssEN5JUsm78K8=
6
- atomicgo.dev/keyboard v0.2.9/go.mod h1:BC4w9g00XkxH/f1HXhW2sXmJFOCWbKn9xrOunSFtExQ=
7
- atomicgo.dev/schedule v0.1.0 h1:nTthAbhZS5YZmgYbb2+DH8uQIZcTlIrd4eYr3UQxEjs=
8
- atomicgo.dev/schedule v0.1.0/go.mod h1:xeUa3oAkiuHYh8bKiQBRojqAMq3PXXbJujjb0hw8pEU=
9
- github.com/MarvinJWendt/testza v0.1.0/go.mod h1:7AxNvlfeHP7Z/hDQ5JtE3OKYT3XFUeLCDE2DQninSqs=
10
- github.com/MarvinJWendt/testza v0.2.1/go.mod h1:God7bhG8n6uQxwdScay+gjm9/LnO4D3kkcZX4hv9Rp8=
11
- github.com/MarvinJWendt/testza v0.2.8/go.mod h1:nwIcjmr0Zz+Rcwfh3/4UhBp7ePKVhuBExvZqnKYWlII=
12
- github.com/MarvinJWendt/testza v0.2.10/go.mod h1:pd+VWsoGUiFtq+hRKSU1Bktnn+DMCSrDrXDpX2bG66k=
13
- github.com/MarvinJWendt/testza v0.2.12/go.mod h1:JOIegYyV7rX+7VZ9r77L/eH6CfJHHzXjB69adAhzZkI=
14
- github.com/MarvinJWendt/testza v0.3.0/go.mod h1:eFcL4I0idjtIx8P9C6KkAuLgATNKpX4/2oUqKc6bF2c=
15
- github.com/MarvinJWendt/testza v0.4.2/go.mod h1:mSdhXiKH8sg/gQehJ63bINcCKp7RtYewEjXsvsVUPbE=
16
- github.com/MarvinJWendt/testza v0.5.2 h1:53KDo64C1z/h/d/stCYCPY69bt/OSwjq5KpFNwi+zB4=
17
- github.com/MarvinJWendt/testza v0.5.2/go.mod h1:xu53QFE5sCdjtMCKk8YMQ2MnymimEctc4n3EjyIYvEY=
18
- github.com/atomicgo/cursor v0.0.1/go.mod h1:cBON2QmmrysudxNBFthvMtN32r3jxVRIvzkUiF/RuIk=
19
- github.com/containerd/console v1.0.3/go.mod h1:7LqA/THxQ86k76b8c/EMSiaJ3h1eZkMkXar0TQ1gf3U=
20
- github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 h1:q2hJAaP1k2wIvVRd/hEHD7lacgqrCPS+k8g1MndzfWY=
21
- github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81/go.mod h1:YynlIjWYF8myEu6sdkwKIvGQq+cOckRm6So2avqoYAk=
22
- github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
23
- github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
24
- github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
25
- github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
26
- github.com/evanw/esbuild v0.21.5 h1:oShm8TT5QUhf6vM7teg0nmd14eHu64dPmVluC2f4DMg=
27
- github.com/evanw/esbuild v0.21.5/go.mod h1:D2vIQZqV/vIf/VRHtViaUtViZmG7o+kKmlBfVQuRi48=
28
- github.com/gookit/color v1.4.2/go.mod h1:fqRyamkC1W8uxl+lxCQxOT09l/vYfZ+QeiX3rKQHCoQ=
29
- github.com/gookit/color v1.5.0/go.mod h1:43aQb+Zerm/BWh2GnrgOQm7ffz7tvQXEKV6BFMl7wAo=
30
- github.com/gookit/color v1.5.4 h1:FZmqs7XOyGgCAxmWyPslpiok1k05wmY3SJTytgvYFs0=
31
- github.com/gookit/color v1.5.4/go.mod h1:pZJOeOS8DM43rXbp4AZo1n9zCU2qjpcRko0b6/QJi9w=
32
- github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
33
- github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
34
- github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
35
- github.com/klauspost/cpuid/v2 v2.0.10/go.mod h1:g2LTdtYhdyuGPqyWyv7qRAmj1WBqxuObKfj5c0PQa7c=
36
- github.com/klauspost/cpuid/v2 v2.0.12/go.mod h1:g2LTdtYhdyuGPqyWyv7qRAmj1WBqxuObKfj5c0PQa7c=
37
- github.com/klauspost/cpuid/v2 v2.2.3 h1:sxCkb+qR91z4vsqw4vGGZlDgPz3G7gjaLyK3V8y70BU=
38
- github.com/klauspost/cpuid/v2 v2.2.3/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY=
39
- github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
40
- github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
41
- github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
42
- github.com/lithammer/fuzzysearch v1.1.8 h1:/HIuJnjHuXS8bKaiTMeeDlW2/AyIWk2brx1V8LFgLN4=
43
- github.com/lithammer/fuzzysearch v1.1.8/go.mod h1:IdqeyBClc3FFqSzYq/MXESsS4S0FsZ5ajtkr5xPLts4=
44
- github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
45
- github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc=
46
- github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
47
- github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
48
- github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
49
- github.com/pterm/pterm v0.12.27/go.mod h1:PhQ89w4i95rhgE+xedAoqous6K9X+r6aSOI2eFF7DZI=
50
- github.com/pterm/pterm v0.12.29/go.mod h1:WI3qxgvoQFFGKGjGnJR849gU0TsEOvKn5Q8LlY1U7lg=
51
- github.com/pterm/pterm v0.12.30/go.mod h1:MOqLIyMOgmTDz9yorcYbcw+HsgoZo3BQfg2wtl3HEFE=
52
- github.com/pterm/pterm v0.12.31/go.mod h1:32ZAWZVXD7ZfG0s8qqHXePte42kdz8ECtRyEejaWgXU=
53
- github.com/pterm/pterm v0.12.33/go.mod h1:x+h2uL+n7CP/rel9+bImHD5lF3nM9vJj80k9ybiiTTE=
54
- github.com/pterm/pterm v0.12.36/go.mod h1:NjiL09hFhT/vWjQHSj1athJpx6H8cjpHXNAK5bUw8T8=
55
- github.com/pterm/pterm v0.12.40/go.mod h1:ffwPLwlbXxP+rxT0GsgDTzS3y3rmpAO1NMjUkGTYf8s=
56
- github.com/pterm/pterm v0.12.79 h1:lH3yrYMhdpeqX9y5Ep1u7DejyHy7NSQg9qrBjF9dFT4=
57
- github.com/pterm/pterm v0.12.79/go.mod h1:1v/gzOF1N0FsjbgTHZ1wVycRkKiatFvJSJC4IGaQAAo=
58
- github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
59
- github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
60
- github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
61
- github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
62
- github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=
63
- github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
64
- github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM=
65
- github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y=
66
- github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
67
- github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
68
- github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
69
- github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
70
- github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
71
- github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
72
- github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
73
- github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
74
- github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1zIOPMxZ5EncGwgmMJsa+9ucAQZXxsObs=
75
- github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
76
- github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
77
- github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
78
- golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
79
- golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
80
- golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561 h1:MDc5xs78ZrZr3HMQugiXOAkSZtfTpbJLDr/lwfgO53E=
81
- golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE=
82
- golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
83
- golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
84
- golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
85
- golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
86
- golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
87
- golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
88
- golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
89
- golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
90
- golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
91
- golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
92
- golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
93
- golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
94
- golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
95
- golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
96
- golang.org/x/sys v0.0.0-20211013075003-97ac67df715c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
97
- golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
98
- golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
99
- golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
100
- golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
101
- golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
102
- golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
103
- golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg=
104
- golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
105
- golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
106
- golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
107
- golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
108
- golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
109
- golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
110
- golang.org/x/term v0.16.0 h1:m+B6fahuftsE9qjo0VWp2FW0mB3MTJvR0BaMQrq0pmE=
111
- golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY=
112
- golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
113
- golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
114
- golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
115
- golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
116
- golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
117
- golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4=
118
- golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI=
119
- golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
120
- golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
121
- golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
122
- golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
123
- golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
124
- gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
125
- gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
126
- gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
127
- gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
128
- gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
129
- gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
130
- gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
131
- gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
package/names.go DELETED
@@ -1,21 +0,0 @@
1
- package yaakcli
2
-
3
- import (
4
- "math/rand/v2"
5
- )
6
-
7
- var adjectives = []string{
8
- "young", "youthful", "yellow", "yielding", "yappy",
9
- "yawning", "yummy", "yucky", "yearly",
10
- }
11
-
12
- var nouns = []string{
13
- "yak", "yarn", "year", "yell", "yoke", "yoga",
14
- "yam", "yacht", "yodel",
15
- }
16
-
17
- func RandomName() string {
18
- adjective := adjectives[rand.IntN(len(adjectives))]
19
- noun := nouns[rand.IntN(len(nouns))]
20
- return adjective + "-" + noun
21
- }