Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

cmdarg.go 494B

123456789
  1. // Copyright 2023 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package internal
  4. // CmdArg represents a command argument for git command, and it will be used for the git command directly without any further processing.
  5. // In most cases, you should use the "AddXxx" functions to add arguments, but not use this type directly.
  6. // Casting a risky (user-provided) string to CmdArg would cause security issues if it's injected with a "--xxx" argument.
  7. type CmdArg string