reponame

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package reponame validates and normalizes repository names before they are sent to the remote create script, mirroring that script's own validation so invalid names are rejected locally with a clear error instead of round-tripping to the server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Normalize

func Normalize(name string) string

Normalize strips a trailing ".git" suffix from name, matching the remote script's tolerance for names typed with the suffix.

func Validate

func Validate(name string) error

Validate reports an error if name (after Normalize) does not match the allowed repo-name pattern.

Types

This section is empty.

Source Files

  • reponame.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL