Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Detect nested stage-scripts and indent output accordingly

Open
#172 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
tooling

Research direction

Start by reading the StagedScript implementation and tracing how stage headings are emitted when one script invokes another. Done means nested StagedScript output is visibly indented while top-level output remains unchanged; the issue names no files or tests to run.

Written by the indexing model from the issue text.

Description

Type: Feature

It'd be really nice if a StagedScript could detect whether it was being run within the stage of another StagedScript, and, if so, adjust it's output by prepending an indent level. I have no idea how I might implement such a thing at the moment, but seeing the output of one script run by another is confusing for the user, because they just see all the stages consolidated together into a flat level, which can be misleading. E.g., consider just the stage headings in the output:

Opening project...
Building documentation...
Creating an environment...                                     # This is a nested script,
Installing documentation dependencies...                       # but the user is unaware,
Building documentation...  # Didn't we already do this above?  # because the output doesn't say.
Building toolbox...
Cleaning up...
Dominant language
Python
Stars
23
Forks
2
Avg merge
3d 11h
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sandialabs/staged-script

All issues in sandialabs/staged-script

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.