GitHookName

com.worxbend.codeberg4s.repositories.hooks.HookIds$package.GitHookName
object GitHookName

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def from(value: String): Either[ValidationError, GitHookName]

Parses a Git hook name.

Parses a Git hook name.

Trims surrounding whitespace. Rejects an empty or blank value, a value containing /, a value containing a control character, and the traversal segments . and .. — see com.worxbend.codeberg4s.repositories.PathSegment for why that is a security boundary and not a convenience.

Attributes

Returns

the name, or a ValidationError on the "gitHookName" field

Extensions

Extensions

extension (name: GitHookName)
def value: String

The name as a string, ready to be used as one path segment.

The name as a string, ready to be used as one path segment.

Attributes