quixote.build.shell package

Module contents

quixote.build.shell.command(*args, **kwargs)

Execute a shell command

Parameters
  • cmd – the command to execute

  • env – the additional environment to use for this command execution

quixote.build.shell.change_work_directory(*args, **kwargs)

Change the current working directory

Parameters

path – the path to the new working directory

quixote.build.shell.set_env(*args, **kwargs)

Set environment variables

Parameters

kwargs – a dictionary with variable names as keys and their values as values

quixote.build.shell.add_user(username: str, *, home_dir: Optional[str] = None, groups: Optional[Iterable[str]] = None, create_home_dir: Optional[bool] = None, shell: Optional[str] = None) str[source]

Create a user

Parameters
  • username – the username of the new user

  • home_dir – the path to the directory to use as home directory for the new user

  • groups – the groups to which the new user should be added

  • create_home_dir – whether or not a home directory should be created for the user (if it does not exist)

  • shell – the path to the executable to set as shell for the new user

quixote.build.shell.change_user_passwd(username: str, new_password: str) str[source]

Change the password for a given user

Parameters
  • username – the username of the user

  • new_password – the new password