~ knotless Search/
↑↓ move↵ open⇧↵ all results

johnandersen777.bsky.social/knotless

git that lives in your Atmosphere account

Forked from chadtmiller.com/knotless

0
0
20 lines · 1005 B Raw History

One developer starting and looking after a small project on their own.

alice

You are starting a small command-line tool called tally, which counts words in text files. Create a repository for it with a one-line description. Put in a first commit with a README explaining what it does, a src/main.py that reads a file named on the command line and prints its word count, and a .gitignore for Python.

Then work on a feature branch, count-lines: add a --lines flag that counts lines instead, and mention it in the README. Make it two commits, one for the code and one for the docs. Check the branch's history and the difference between it and main, and bring the feature into main.

Finally, look back: find where the word count is computed by searching the code, read the file to confirm main has the flag, and look at the log of main. The name tally turns out to clash with another tool, so rename the repository to wordtally and check it is still all there under the new name.