Skip to content

Comments

TEMPLATE: CLI terminal#87

Open
iezqrom wants to merge 2 commits intodevfrom
cli-terminal
Open

TEMPLATE: CLI terminal#87
iezqrom wants to merge 2 commits intodevfrom
cli-terminal

Conversation

@iezqrom
Copy link
Collaborator

@iezqrom iezqrom commented Nov 27, 2025

This PR adds a small CLI tool to poulet-py that allows users to scaffold a new experiment repository directly from the terminal using build-exp init . The command downloads the poulet-lab/experiment-template archive, copies it into the target folder, removes the template’s .git directory, updates README references from experiment-template to the new project name, and prints clear next-step instructions for initialising a fresh git repository.

The main benefit is that any user who installs poulet-py (inside or outside the lab) can create a standardised experiment structure without manually cloning or cleaning the template repository. This lowers the barrier to using the shared experiment template, promotes consistent organisation of experiments, and makes it easier for external users and collaborators to adopt the lab’s conventions.

iezqrom and others added 2 commits November 27, 2025 11:08
Introduced a new command line interface (CLI) for creating experiment projects using a template. The `build-exp` command allows users to initialize a new experiment repository from the terminal. Updated the README to include usage instructions and added tests to ensure functionality.

New files:
- `cli/__init__.py`: CLI module initialization.
- `cli/experiment.py`: Contains the logic for downloading and setting up the experiment template.
- `tests/cli/test_experiment.py`: Tests for the experiment CLI functionality.

Updated `pyproject.toml` to register the new CLI command and modified the README to document the new feature.
@iezqrom iezqrom requested a review from vkaramanis November 27, 2025 10:17
@iezqrom iezqrom changed the base branch from main to dev November 27, 2025 10:17
@iezqrom iezqrom changed the title CLI terminal TEMPLATE: CLI terminal Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant