[PR #8621] [MERGED] Enable tab completion in nbshell #13378

Closed
opened 2025-12-29 22:27:04 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/8621
Author: @JonathonReinhart
Created: 2/13/2022
Status: Merged
Merged: 2/14/2022
Merged by: @jeremystretch

Base: developHead: nbshell-tab-complete


📝 Commits (1)

  • d1b1a45 Enable tab completion in nbshell

📊 Changes

1 file changed (+15 additions, -2 deletions)

View changed files

📝 netbox/extras/management/commands/nbshell.py (+15 -2)

📄 Description

Fixes: #8620

This uses the standard library readline and rlcompleter modules to add tab-completion to the NetBox Shell (mange.py nbshell).

If readline support isn't enabled in the Python installation, then this code does nothing.


🔄 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/netbox-community/netbox/pull/8621 **Author:** [@JonathonReinhart](https://github.com/JonathonReinhart) **Created:** 2/13/2022 **Status:** ✅ Merged **Merged:** 2/14/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `nbshell-tab-complete` --- ### 📝 Commits (1) - [`d1b1a45`](https://github.com/netbox-community/netbox/commit/d1b1a457255af585d65ccef5baf4a8e9e83e675c) Enable tab completion in nbshell ### 📊 Changes **1 file changed** (+15 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/management/commands/nbshell.py` (+15 -2) </details> ### 📄 Description ### Fixes: #8620 This uses the standard library [`readline`](https://docs.python.org/3/library/readline.html) and [`rlcompleter`](https://docs.python.org/3/library/rlcompleter.html) modules to add tab-completion to the NetBox Shell (`mange.py nbshell`). If `readline` support isn't enabled in the Python installation, then this code does nothing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:27:04 +01:00
adam closed this issue 2025-12-29 22:27:04 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13378