OpenTAP 9.34
API Reference
OpenTap.Package.GitVersionAction Class Reference

CLI sub command tap sdk gitversion that can calculate a version number based on the git history and a .gitversion file. More...

Inheritance diagram for OpenTap.Package.GitVersionAction:
OpenTap.Cli.ICliAction OpenTap.ITapPlugin

Public Member Functions

 GitVersionAction ()
 Constructs new action with default values for arguments.
 
int Execute (CancellationToken cancellationToken)
 Executes this action.
 
- Public Member Functions inherited from OpenTap.Cli.ICliAction

Properties

string PrintLog [get, set]
 Represents the –gitlog command line argument which prints git log for the last n commits including version numbers for each commit.
 
string Sha [get, set]
 Represents an unnamed command line argument which specifies for which git ref a version should be calculated.
 
string ReplaceFile [get, set]
 Represents the –replace command line argument which causes this command to replace all occurrences of in the specified file. Cannot be used together with –gitlog.
 
int FieldCount [get, set]
 Represents the –fields command line argument which specifies the number of version fields to print/replace.
 
string RepoPath [get, set]
 Represents the –dir command line argument which specifies the directory in which the git repository to use is located.
 

Detailed Description

CLI sub command tap sdk gitversion that can calculate a version number based on the git history and a .gitversion file.

Member Function Documentation

◆ Execute()

int OpenTap.Package.GitVersionAction.Execute ( CancellationToken cancellationToken)
inline

Executes this action.

Returns
Returns 0 to indicate success.

Implements OpenTap.Cli.ICliAction.

OpenTAP 9.34 API built Wed Jul 1 2026 09:21:15