Skip to content

Executor#

Newversion Index / Newversion / Executor

Auto-generated documentation for newversion.executor module.

Executor#

Show source in executor.py:16

CLI commands executor.

Signature#

class Executor:
    def __init__(self, input: Optional[Version] = None) -> None: ...

See also#

Executor().command_bump#

Show source in executor.py:77

Bump release.

Arguments#

  • release - Release name
  • increment - Number to increase by

Returns#

A new Version.

Signature#

def command_bump(self, release: ReleaseNonLocalTypeDef, increment: int) -> Version: ...

See also#

Executor().command_compare#

Show source in executor.py:174

Execute compare command.

Arguments#

  • command - Compare operator.
  • other - Version to compare to.

Returns#

Processed Version.

Signature#

def command_compare(self, command: OperatorTypeDef, other: Version) -> None: ...

See also#

Executor().command_get#

Show source in executor.py:27

Get version part.

Arguments#

  • release - Release part name.

Returns#

Part as a string.

Signature#

def command_get(self, release: ReleaseTypeDef) -> str: ...

See also#

Executor().command_get_version#

Show source in executor.py:197

Signature#

def command_get_version(self) -> Version: ...

See also#

Executor().command_is_stable#

Show source in executor.py:164

Check whether version is stable.

Raises#

  • ExecutorError - If it is not.

Signature#

def command_is_stable(self) -> None: ...

Executor().command_set#

Show source in executor.py:113

Set version part.

Arguments#

  • release - Release name
  • value - Value to set

Returns#

A new Version.

Signature#

def command_set(self, release: ReleaseNonLocalTypeDef, value: int) -> Version: ...

See also#

Executor().command_set_version#

Show source in executor.py:203

Signature#

def command_set_version(self) -> None: ...

Executor().command_stable#

Show source in executor.py:155

Get stable non-post, non-local version from current.

Returns#

A new Version.

Signature#

def command_stable(self) -> Version: ...

See also#