[PR #49] [MERGED] Use Typer instead of argparse #81

Closed
opened 2026-03-02 16:48:05 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/initialcommit-com/git-sim/pull/49
Author: @paketb0te
Created: 2/8/2023
Status: Merged
Merged: 2/9/2023
Merged by: @initialcommit-io

Base: mainHead: typer


📝 Commits (10+)

  • 3f19d5a first draft for typer commands
  • 2d54992 make each command a separate typer app
  • 3abea68 remove implemented options from TODO comment
  • c2c595e add logo, show_intro, show_outro, media_dir
  • 0794f68 finish top-level options
  • d6a06af make log a command instead of a typr app
  • ed313b0 move print statement into GitSimBaseCommand
  • 7ed7a0b remove dupplicate setting "logo"
  • c9cb296 make status a command instead of a typr app
  • 8c4c940 Revert "move print statement into GitSimBaseCommand"

📊 Changes

18 files changed (+700 additions, -647 deletions)

View changed files

📝 git_sim/__main__.py (+124 -354)
git_sim/animations.py (+92 -0)
📝 git_sim/git_sim_add.py (+25 -16)
📝 git_sim/git_sim_base_command.py (+63 -68)
📝 git_sim/git_sim_branch.py (+22 -10)
📝 git_sim/git_sim_cherrypick.py (+34 -19)
📝 git_sim/git_sim_commit.py (+31 -20)
📝 git_sim/git_sim_log.py (+21 -8)
📝 git_sim/git_sim_merge.py (+38 -21)
📝 git_sim/git_sim_rebase.py (+34 -21)
📝 git_sim/git_sim_reset.py (+63 -32)
📝 git_sim/git_sim_restore.py (+25 -20)
📝 git_sim/git_sim_revert.py (+25 -13)
📝 git_sim/git_sim_stash.py (+26 -24)
📝 git_sim/git_sim_status.py (+13 -11)
📝 git_sim/git_sim_tag.py (+21 -9)
git_sim/settings.py (+41 -0)
📝 setup.py (+2 -1)

📄 Description

The PR for #43 :)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/initialcommit-com/git-sim/pull/49 **Author:** [@paketb0te](https://github.com/paketb0te) **Created:** 2/8/2023 **Status:** ✅ Merged **Merged:** 2/9/2023 **Merged by:** [@initialcommit-io](https://github.com/initialcommit-io) **Base:** `main` ← **Head:** `typer` --- ### 📝 Commits (10+) - [`3f19d5a`](https://github.com/initialcommit-com/git-sim/commit/3f19d5a3901d5ec2e8005db511b2b2193386bb8b) first draft for typer commands - [`2d54992`](https://github.com/initialcommit-com/git-sim/commit/2d549924750e28e7abdcb08187979342fdd31ebd) make each command a separate typer app - [`3abea68`](https://github.com/initialcommit-com/git-sim/commit/3abea68f07830ba86febac010ef3eed077f11493) remove implemented options from TODO comment - [`c2c595e`](https://github.com/initialcommit-com/git-sim/commit/c2c595e8eb6185ce727b850176576e1a28aecc92) add logo, show_intro, show_outro, media_dir - [`0794f68`](https://github.com/initialcommit-com/git-sim/commit/0794f68a38c0ab8a7c69c7a657e21a6211dbaeee) finish top-level options - [`d6a06af`](https://github.com/initialcommit-com/git-sim/commit/d6a06af956eddeb54b7554172f6e1b900a4522a6) make log a command instead of a typr app - [`ed313b0`](https://github.com/initialcommit-com/git-sim/commit/ed313b02c91ccb05b506732178e03edea0078e61) move print statement into GitSimBaseCommand - [`7ed7a0b`](https://github.com/initialcommit-com/git-sim/commit/7ed7a0b41060dbf797eb4afbb6a1640ea0315126) remove dupplicate setting "logo" - [`c9cb296`](https://github.com/initialcommit-com/git-sim/commit/c9cb2967af1d5335805560a9ff19c0b6affe2cc9) make status a command instead of a typr app - [`8c4c940`](https://github.com/initialcommit-com/git-sim/commit/8c4c940e715562d341a35200949b8c02ed402a18) Revert "move print statement into GitSimBaseCommand" ### 📊 Changes **18 files changed** (+700 additions, -647 deletions) <details> <summary>View changed files</summary> 📝 `git_sim/__main__.py` (+124 -354) ➕ `git_sim/animations.py` (+92 -0) 📝 `git_sim/git_sim_add.py` (+25 -16) 📝 `git_sim/git_sim_base_command.py` (+63 -68) 📝 `git_sim/git_sim_branch.py` (+22 -10) 📝 `git_sim/git_sim_cherrypick.py` (+34 -19) 📝 `git_sim/git_sim_commit.py` (+31 -20) 📝 `git_sim/git_sim_log.py` (+21 -8) 📝 `git_sim/git_sim_merge.py` (+38 -21) 📝 `git_sim/git_sim_rebase.py` (+34 -21) 📝 `git_sim/git_sim_reset.py` (+63 -32) 📝 `git_sim/git_sim_restore.py` (+25 -20) 📝 `git_sim/git_sim_revert.py` (+25 -13) 📝 `git_sim/git_sim_stash.py` (+26 -24) 📝 `git_sim/git_sim_status.py` (+13 -11) 📝 `git_sim/git_sim_tag.py` (+21 -9) ➕ `git_sim/settings.py` (+41 -0) 📝 `setup.py` (+2 -1) </details> ### 📄 Description The PR for #43 :) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 16:48:05 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-sim#81
No description provided.