Files
rsmsn_blog/content/posts/whiptail-first-merged-pr.md

51 lines
2.8 KiB
Markdown

---
title: 'My First Merged PR!'
date: 2022-09-01T13:25:02-04:00
tags: ["git", "opensource", "diy"]
author: "Me"
showToc: false
TocOpen: false
draft: false
hidemeta: false
description: 'Child like joy of having my first merged PR! I recently was using Whiptail library and fixed a bug.'
disableHLJS: true # to disable highlightjs
disableShare: false
disableHLJS: false
hideSummary: false
searchHidden: true
ShowReadingTime: true
ShowBreadCrumbs: true
ShowPostNavLinks: true
ShowWordCount: true
ShowRssButtonInSectionTermList: true
UseHugoToc: true
cover:
image: "merged-pr-accepted.png"
alt: "Git Pull Request with an arrow pointing to a check mark"
caption: "Git pull request was accepted and merged!"
relative: false
hidden: true # only hide on current single page
---
Admittedly, I feel a bit like a child sharing something like this, as there are so many devs that pull and merge requests
from contributors on a regular basis. However, while I've contributed to documentation and/or tutorials and other non-coding
portions of repositories, I feel a tiny bit proud that this was the first instance where I was using a library, [found a bug](https://github.com/domdfcoding/whiptail/issues/41),
created an issue, cloned the repo to my local machine, found and fixed the code, and opened a pull request. It was a great
learning experience with git, github, contributing to projects, and more. [My first merged PR!](https://github.com/domdfcoding/whiptail/pull/42)
The project and library I was using was called [Whiptail](https://github.com/domdfcoding/whiptail) which allows you to use
the terminal message boxes through a python script. [Here are their docs](https://whiptail.readthedocs.io/en/latest/). These message boxes are the same that you might see when you install a linux distro from a USB or first install of a server.
What I was using this for is to develop an visually appealing way to use the [Meshtastic CLI](https://meshtastic.org/docs/software/python/cli). There can be a ton of
settings and flags to add to your [Meshtastic](https://meshtastic.org/) device and adding the flags one by one - or worse,
you have to go back and change a flag and you're not using [zsh-vi-mode](https://github.com/jeffreytse/zsh-vi-mode) - can be
time consuming. This project would allow you to choose in a whiptail dialog from a list of flags and pass values to the
flags. By having them in a navigable list, you can always retract a flag you no longer need.
Then, once you've added everything you need, you confirm, and the command runs and syncs up your Meshtastic device!
Maybe I'll post more about that project if I ever get around to finishing it. But since Meshtastic releases new updates on
such a regular basis, I need to ensure the project pulls from Meshtastic commands in a more dynamic way.
Anyway, in this letter to no one, just thought I'd share my excitement.