Documentation
¶
Overview ¶
Package commandanalysis owns deterministic command and executable facts.
Index ¶
- Constants
- Variables
- func GitHubRemoteWrite(args []string) bool
- func GitInvocation(args []string) (globals []string, command string, rest []string)
- func GitReadOnlyCommand(command string) bool
- func HasHelpFlag(args []string) bool
- func IsVCSTool(name string) bool
- func LocalEnvironment(environmentID []byte) bool
- func SVNReadOnlyCommand(command string) bool
- func VCSValueOption(tool, option string) bool
- func WorktreeWrites(argv []string) bool
- type Command
Constants ¶
const MaxScriptBytes = 1 << 20
MaxScriptBytes bounds static observation of a stock JavaScript cell.
Variables ¶
var VCSTools = []string{"git", "gh", "hg", "svn", "jj"}
VCSTools names the version-control and hosting executables recognized by Mekugi.
Functions ¶
func GitHubRemoteWrite ¶
GitHubRemoteWrite reports possible GitHub API or repository mutations.
func GitInvocation ¶
GitInvocation shares global-option parsing between approval and observation.
func GitReadOnlyCommand ¶
GitReadOnlyCommand reports built-in readers with no worktree mutation. Options that write output or run a pager need separate caller checks.
func HasHelpFlag ¶
HasHelpFlag recognizes explicit help requests among already-separated options.
func LocalEnvironment ¶
func SVNReadOnlyCommand ¶
SVNReadOnlyCommand identifies Subversion's built-in readers and aliases.
func VCSValueOption ¶
VCSValueOption identifies global options whose next argument is a value.
func WorktreeWrites ¶
WorktreeWrites reports whether a VCS invocation may import, discard, or write out repository content. Unknown commands remain possible writers. This is effect attribution, independent of remote-write approval.
Types ¶
type Command ¶
Source: internal/router/exec_observation.go:57:61,208:235,1656:1794@23344db6. Command is one stock command as the host will run it.
func ExecCommandArguments ¶
ExecCommandArguments decodes stock exec_command arguments and resolves the working directory against the selected metadata directory. A command without its own shell runs in the session shell. A command for another environment is excluded from local observation.
func LiteralExecCommands ¶
LiteralExecCommands extracts literal tools.exec_command calls from a exec cell. Any other reference to the command tools, including write_stdin input that can drive a started process, makes the cell dynamic.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package execscope derives bounded write scopes without executing the user's program.
|
Package execscope derives bounded write scopes without executing the user's program. |