Files
upstream-mirror c60cc7ca75
Some checks failed
CI / Run tests and lints (push) Failing after 29s
CI / Build CLI docs (push) Has been skipped
CI / Run Playwright end-to-end tests (mysql) (push) Failing after 3s
CI / Run Playwright end-to-end tests (postgres) (push) Failing after 2s
CI / Run Playwright end-to-end tests (sqlite) (push) Failing after 3s
CodeQL / Analyze (go) (push) Failing after 4s
CodeQL / Analyze (javascript) (push) Failing after 3s
Docker Image Scanners / scanners (push) Failing after 4s
Synchronize Issue Labels / Synchronize Issue Labels (push) Has been skipped
CI / Run end-to-end tests (postgres) (push) Failing after 19s
CI / Run end-to-end tests (sqlite) (push) Failing after 2s
CI / Run Playwright end-to-end tests (cockroach) (push) Failing after 2s
CI / Draft newsletter (push) Has been skipped
CI / Generate release (push) Has been skipped
CI / Pending approval Slack notification (push) Has been skipped
CI / Send newsletter (push) Has been skipped
snapshot of https://github.com/ory/kratos.git (master, 2026-09-15; blobs > 131072B omitted)
2026-09-15 21:19:12 +05:00

57 lines
1.8 KiB
Go

// Copyright © 2023 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package jsonnetx
import (
"github.com/spf13/cobra"
)
const GlobHelp = `Glob patterns supports the following special terms in the patterns:
Special Terms | Meaning
------------- | -------
'*' | matches any sequence of non-path-separators
'**' | matches any sequence of characters, including path separators
'?' | matches any single non-path-separator character
'[class]' | matches any single non-path-separator character against a class of characters ([see below](#character-classes))
'{alt1,...}' | matches a sequence of characters if one of the comma-separated alternatives matches
Any character with a special meaning can be escaped with a backslash ('\').
#### Character Classes
Character classes support the following:
Class | Meaning
---------- | -------
'[abc]' | matches any single character within the set
'[a-z]' | matches any single character in the range
'[^class]' | matches any single character which does *not* match the class
`
// RootCommand represents the jsonnet command
// Deprecated: use NewRootCommand instead.
var RootCommand = &cobra.Command{
Use: "jsonnet",
Short: "Helpers for linting and formatting JSONNet code",
}
// RegisterCommandRecursive adds all jsonnet helpers to the RootCommand
// Deprecated: use NewRootCommand instead.
func RegisterCommandRecursive(parent *cobra.Command) {
parent.AddCommand(RootCommand)
RootCommand.AddCommand(NewFormatCommand())
RootCommand.AddCommand(NewLintCommand())
}
func NewRootCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "jsonnet",
Short: "Helpers for linting and formatting JSONNet code",
}
cmd.AddCommand(NewFormatCommand(), NewLintCommand())
return cmd
}