evennia.contrib.utils.git_integration.git_integration

class evennia.contrib.utils.git_integration.git_integration.GitCommand(**kwargs)[source]

Bases: evennia.commands.default.muxcommand.MuxCommand

The shared functionality between git/git evennia

parse()[source]

Parse the arguments, set default arg to ‘status’ and check for existence of currently targeted repo

short_sha(repo, hexsha)[source]

Utility: Get the short SHA of a commit.

get_status()[source]

Retrieves the status of the active git repository, displaying unstaged changes/untracked files.

get_branches()[source]

Display current and available branches.

checkout()[source]

Check out a specific branch.

pull()[source]

Attempt to pull new code.

func()[source]

Provide basic Git functionality within the game.

aliases = []
help_category = 'general'
key = 'command'
lock_storage = 'cmd:all();'
search_index_entry = {'aliases': '', 'category': 'general', 'key': 'command', 'no_prefix': ' ', 'tags': '', 'text': '\n The shared functionality between git/git evennia\n '}
class evennia.contrib.utils.git_integration.git_integration.CmdGitEvennia(**kwargs)[source]

Bases: evennia.contrib.utils.git_integration.git_integration.GitCommand

Pull the latest code from the evennia core or checkout a different branch.

Usage:

git evennia status - View an overview of the evennia repository status. git evennia branch - View available branches in evennia. git evennia checkout <branch> - Checkout a different branch in evennia. git evennia pull - Pull the latest evennia code.

For updating your local mygame repository, the same commands are available with ‘git’.

If there are any conflicts encountered, the command will abort. The command will reload your game after pulling new code automatically, but for some changes involving persistent scripts etc, you may need to manually restart.

key = 'git evennia'
locks = 'cmd:pperm(Developer)'
help_category = 'system'
directory = '/home/griatch/Devel/Home/evennia/evennia/evennia'
repo_type = 'Evennia'
aliases = []
lock_storage = 'cmd:pperm(Developer)'
search_index_entry = {'aliases': '', 'category': 'system', 'key': 'git evennia', 'no_prefix': ' ', 'tags': '', 'text': "\n Pull the latest code from the evennia core or checkout a different branch.\n\n Usage:\n git evennia status - View an overview of the evennia repository status.\n git evennia branch - View available branches in evennia.\n git evennia checkout <branch> - Checkout a different branch in evennia.\n git evennia pull - Pull the latest evennia code.\n\n For updating your local mygame repository, the same commands are available with 'git'.\n\n If there are any conflicts encountered, the command will abort. The command will reload your game after pulling new code automatically, but for some changes involving persistent scripts etc, you may need to manually restart.\n "}
class evennia.contrib.utils.git_integration.git_integration.CmdGit(**kwargs)[source]

Bases: evennia.contrib.utils.git_integration.git_integration.GitCommand

Pull the latest code from your repository or checkout a different branch.

Usage:

git status - View an overview of your git repository. git branch - View available branches. git checkout main - Checkout the main branch of your code. git pull - Pull the latest code from your current branch.

For updating evennia code, the same commands are available with ‘git evennia’.

If there are any conflicts encountered, the command will abort. The command will reload your game after pulling new code automatically, but for changes involving persistent scripts etc, you may need to manually restart.

key = 'git'
locks = 'cmd:pperm(Developer)'
help_category = 'system'
directory = '/home/griatch/Devel/Home/evennia/evennia/evennia/game_template'
repo_type = 'game'
aliases = []
lock_storage = 'cmd:pperm(Developer)'
search_index_entry = {'aliases': '', 'category': 'system', 'key': 'git', 'no_prefix': ' ', 'tags': '', 'text': "\n Pull the latest code from your repository or checkout a different branch.\n\n Usage:\n git status - View an overview of your git repository.\n git branch - View available branches.\n git checkout main - Checkout the main branch of your code.\n git pull - Pull the latest code from your current branch.\n\n For updating evennia code, the same commands are available with 'git evennia'.\n\n If there are any conflicts encountered, the command will abort. The command will reload your game after pulling new code automatically, but for changes involving persistent scripts etc, you may need to manually restart.\n "}
class evennia.contrib.utils.git_integration.git_integration.GitCmdSet(cmdsetobj=None, key=None)[source]

Bases: evennia.commands.cmdset.CmdSet

The git command.

at_cmdset_creation()[source]

Hook method - this should be overloaded in the inheriting class, and should take care of populating the cmdset by use of self.add().

path = 'evennia.contrib.utils.git_integration.git_integration.GitCmdSet'