Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/zed.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions internal/cmd/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ func registerImportCmd(rootCmd *cobra.Command) {
Short: "Imports schema and relationships from a file or url",
Example: `
From a gist:
zed import https://gist.github.com/ecordell/8e3b613a677e3c844742cf24421c08b6
zed import https://gist.github.com/YOUR_USERNAME/YOUR_GIST_ID

From a playground link:
zed import https://play.authzed.com/s/iksdFvCtvnkR/schema
zed import https://play.authzed.com/s/YOUR_SHARE_ID/schema

From pastebin:
zed import https://pastebin.com/8qU45rVK
zed import https://pastebin.com/YOUR_PASTE_ID

From a devtools instance:
zed import https://localhost:8443/download
Expand Down
6 changes: 3 additions & 3 deletions internal/cmd/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ func registerValidateCmd(cmd *cobra.Command) {
zed validate authzed-x7izWU8_2Gw3.yaml

From a gist:
zed validate https://gist.github.com/ecordell/8e3b613a677e3c844742cf24421c08b6
zed validate https://gist.github.com/YOUR_USERNAME/YOUR_GIST_ID

From a playground link:
zed validate https://play.authzed.com/s/iksdFvCtvnkR/schema
zed validate https://play.authzed.com/s/YOUR_SHARE_ID/schema

From pastebin:
zed validate https://pastebin.com/8qU45rVK`,
zed validate https://pastebin.com/YOUR_PASTE_ID`,
Args: commands.ValidationWrapper(cobra.MinimumNArgs(1)),
ValidArgsFunction: commands.FileExtensionCompletions("zed", "yaml", "yml", "zaml"),
PreRunE: validatePreRunE,
Expand Down
6 changes: 0 additions & 6 deletions internal/cmd/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,6 @@ complete - 0 relationships loaded, 0 assertions run, 0 expected relations valida
" 10 | }\n" +
" 11 | \n\n\n",
},
// TODO: https://github.com/authzed/zed/issues/487
// `url_passes`: {
// files: []string{
// "https://play.authzed.com/s/iksdFvCtvnkR/schema",
// },
// },
`composable_schema_passes`: {
files: []string{
filepath.Join("validate-test", "composable-schema-root.zed"),
Expand Down
Loading