-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
caba8dc
commit a4aecb2
Showing
83 changed files
with
6,225 additions
and
3,760 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package clitest | ||
|
||
import ( | ||
"io/fs" | ||
"os" | ||
"testing/fstest" | ||
) | ||
|
||
type TestFS fstest.MapFS | ||
|
||
func (t TestFS) Open(name string) (fs.File, error) { return (fstest.MapFS)(t).Open(name) } | ||
func (t TestFS) ReadDir(name string) ([]fs.DirEntry, error) { return (fstest.MapFS)(t).ReadDir(name) } | ||
func (t TestFS) Stat(name string) (fs.FileInfo, error) { return (fstest.MapFS)(t).Stat(name) } | ||
|
||
func (t TestFS) WriteFile(name string, data []byte, perm os.FileMode) error { | ||
t[name] = &fstest.MapFile{ | ||
Data: data, | ||
Mode: perm, | ||
} | ||
|
||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,11 @@ | |
* Fetching organizations…⠋ | ||
─── Selector[github.com/anchordotdev/cli/api.Organization] ───────────────────── | ||
? Which organization do you want for this test? | ||
> First Org Slug (first-org-slug) | ||
Second Org Slug (second-org-slug) | ||
> [email protected] (ankydotdev) | ||
AnkyCo (ankyco) | ||
─── Selector[github.com/anchordotdev/cli/api.Organization] ───────────────────── | ||
? Which organization do you want for this test? | ||
First Org Slug (first-org-slug) | ||
> Second Org Slug (second-org-slug) | ||
[email protected] (ankydotdev) | ||
> AnkyCo (ankyco) | ||
─── Selector[github.com/anchordotdev/cli/api.Organization] ───────────────────── | ||
- Selected second-org-slug organization. You can also use `--org second-org-slug`. | ||
- Selected ankyco organization. You can also use `--org ankyco`. |
Oops, something went wrong.