Zero Install .NET API 2.20.0
ZeroInstall.Publish.EntryPoints.InterpretedScript Class Reference

A plain text script that is executed by a runtime interpreter. More...

Inheritance diagram for ZeroInstall.Publish.EntryPoints.InterpretedScript:
ZeroInstall.Publish.EntryPoints.Candidate ZeroInstall.Publish.EntryPoints.BashScript ZeroInstall.Publish.EntryPoints.PerlScript ZeroInstall.Publish.EntryPoints.PhpScript ZeroInstall.Publish.EntryPoints.PowerShellScript ZeroInstall.Publish.EntryPoints.PythonScript ZeroInstall.Publish.EntryPoints.RubyScript

Public Member Functions

override Command CreateCommand ()
 Creates a Command to launch this entry point. More...
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 
- Public Member Functions inherited from ZeroInstall.Publish.EntryPoints.Candidate
override string ToString ()
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 

Protected Member Functions

bool HasShebang (FileInfo file, [Localizable(false)] string interpreter)
 Determines whether a file is executable and has a shebang line pointing to a specific interpreter. More...
 
bool Equals (InterpretedScript? other)
 
- Protected Member Functions inherited from ZeroInstall.Publish.EntryPoints.Candidate
bool IsExecutable (string path)
 Determines whether a file is executable.
 
bool Equals (Candidate? other)
 

Package Functions

override bool Analyze (DirectoryInfo baseDirectory, FileInfo file)
 Analyzes a file to determine whether it matches this candidate type and extracts meta data. More...
 

Properties

abstract FeedUri InterpreterInterface [get]
 The interface URI of the interpreter to run the script.
 
VersionRangeInterpreterVersions [getset]
 The range of versions of the script interpreter supported by the application.
 
- Properties inherited from ZeroInstall.Publish.EntryPoints.Candidate
DirectoryInfo? BaseDirectory [get]
 The base directory containing the entire application.
 
string? RelativePath [getset]
 The path of this entry point relative to BaseDirectory.
 
string? Name [getset]
 The application's name. More...
 
string? Summary [getset]
 Short one-line description; the first word should not be upper-case unless it is a proper noun (e.g. "cures all ills"). More...
 
bool NeedsTerminal [getset]
 A suggestion for Feed.NeedsTerminal.
 
ImplementationVersionVersion [getset]
 The application's current version. More...
 
Architecture Architecture [getset]
 A suggestion for TargetBase.Architecture.
 
string? Category [getset]
 The main category of the application. May influence the placement in the start menu.
 
string CommandName [get]
 The Command.Name used by CreateCommand.
 

Detailed Description

A plain text script that is executed by a runtime interpreter.

Member Function Documentation

◆ Analyze()

override bool ZeroInstall.Publish.EntryPoints.InterpretedScript.Analyze ( DirectoryInfo  baseDirectory,
FileInfo  file 
)
inlinepackagevirtual

◆ CreateCommand()

override Command ZeroInstall.Publish.EntryPoints.InterpretedScript.CreateCommand ( )
virtual

◆ HasShebang()

bool ZeroInstall.Publish.EntryPoints.InterpretedScript.HasShebang ( FileInfo  file,
[Localizable(false)] string  interpreter 
)
inlineprotected

Determines whether a file is executable and has a shebang line pointing to a specific interpreter.

Parameters
fileThe file to analyze.
interpreterThe name of the interpreter to search for (e.g. 'python').

The documentation for this class was generated from the following file: