fabricatio_checkpoint.cli

Fabricatio Checkpoint CLI tool for managing code checkpoints and workspaces.

Attributes

app

Functions

main(] = Path.cwd) → None)

Fabricatio Checkpoint CLI tool for managing code checkpoints and workspaces.

reset() → None)

Reset the workspace to a specific commit.

save(] = ) → None)

Save the workspace.

diff(→ None)

Show the difference between the workspace and the last commit.

ls(→ None)

List all commits of the workspace specified in the workspace argument.

workspaces(→ None)

List all workspaces.

Module Contents

fabricatio_checkpoint.cli.app
fabricatio_checkpoint.cli.main(ctx: typer.Context, workspace: Annotated[pathlib.Path, Option('--workspace', '-w', help='Path to the workspace.', exists=True, file_okay=False, resolve_path=True)] = Path.cwd()) None

Fabricatio Checkpoint CLI tool for managing code checkpoints and workspaces.

fabricatio_checkpoint.cli.reset(ctx: typer.Context, commit_id: str = Argument('HEAD', help='The commit id to reset to.')) None

Reset the workspace to a specific commit.

fabricatio_checkpoint.cli.save(ctx: typer.Context, message: Annotated[str, Argument(help='The message of the commit.')] = 'Change') None

Save the workspace.

fabricatio_checkpoint.cli.diff(ctx: typer.Context) None

Show the difference between the workspace and the last commit.

fabricatio_checkpoint.cli.ls(ctx: typer.Context) None

List all commits of the workspace specified in the workspace argument.

fabricatio_checkpoint.cli.workspaces() None

List all workspaces.