OpenTAP 9.25
API Reference
Public Member Functions | Properties | List of all members
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. More...
 

Properties

string PrintLog [getset]
 Represents the –gitlog command line argument which prints git log for the last n commits including version numbers for each commit.
 
string Sha [getset]
 Represents an unnamed command line argument which specifies for which git ref a version should be calculated.
 
string ReplaceFile [getset]
 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 [getset]
 Represents the –fields command line argument which specifies the number of version fields to print/replace.
 
string RepoPath [getset]
 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.25 API built Tue Aug 6 2024 07:49:25