[PR #62] [MERGED] Topic/refactor config #1234

Closed
opened 2025-12-29 02:29:18 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/62
Author: @ohdearaugustin
Created: 7/25/2021
Status: Merged
Merged: 7/30/2021
Merged by: @juanfont

Base: mainHead: topic/refactor-config


📝 Commits (9)

📊 Changes

8 files changed (+96 additions, -78 deletions)

View changed files

📝 cmd/headscale/cli/namespaces.go (+11 -4)
📝 cmd/headscale/cli/nodes.go (+15 -4)
📝 cmd/headscale/cli/preauthkeys.go (+17 -3)
cmd/headscale/cli/root.go (+28 -0)
📝 cmd/headscale/cli/routes.go (+14 -3)
📝 cmd/headscale/cli/server.go (+5 -1)
📝 cmd/headscale/cli/version.go (+5 -1)
📝 cmd/headscale/headscale.go (+1 -62)

📄 Description

Refactor configuration to a more default cobra config layout. Makes it more maintainable and easier extendable.


🔄 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/juanfont/headscale/pull/62 **Author:** [@ohdearaugustin](https://github.com/ohdearaugustin) **Created:** 7/25/2021 **Status:** ✅ Merged **Merged:** 7/30/2021 **Merged by:** [@juanfont](https://github.com/juanfont) **Base:** `main` ← **Head:** `topic/refactor-config` --- ### 📝 Commits (9) - [`53185ea`](https://github.com/juanfont/headscale/commit/53185eaa9e2a7238e266b2bfe0e8cb89a8e27dee) Refactor namespaces cmd - [`2862c20`](https://github.com/juanfont/headscale/commit/2862c2034b4236ef11d1774d6fbe81b92d5bd187) Refactor nodes cmd - [`e56755f`](https://github.com/juanfont/headscale/commit/e56755fd67cd74f221d998a7211ba56041dfdb7a) Refactor preauthkeys cmd - [`d87a4c8`](https://github.com/juanfont/headscale/commit/d87a4c87cc6cf926dbe154da7f904b365ba43cf6) Refactor routes cmd - [`4915902`](https://github.com/juanfont/headscale/commit/4915902e04086fed0f0993bc2ae79cff88c1b9a6) Refactor server cmd - [`b97d6f7`](https://github.com/juanfont/headscale/commit/b97d6f71b1936959365edf03f45f7ca81960f27d) Refactor version cmd - [`3a07360`](https://github.com/juanfont/headscale/commit/3a07360b6ec6cbe3ffc0e3596a22cdc3f1ab62b4) Add root cmd - [`04dffcc`](https://github.com/juanfont/headscale/commit/04dffcc4ae79c1e12e78cc4f19fef7303e459500) Refactor cli commands - [`ea3043c`](https://github.com/juanfont/headscale/commit/ea3043cdcb1585f8db7499d6df8fa47eae041b76) cmd: Add error check for Persistent Flags ### 📊 Changes **8 files changed** (+96 additions, -78 deletions) <details> <summary>View changed files</summary> 📝 `cmd/headscale/cli/namespaces.go` (+11 -4) 📝 `cmd/headscale/cli/nodes.go` (+15 -4) 📝 `cmd/headscale/cli/preauthkeys.go` (+17 -3) ➕ `cmd/headscale/cli/root.go` (+28 -0) 📝 `cmd/headscale/cli/routes.go` (+14 -3) 📝 `cmd/headscale/cli/server.go` (+5 -1) 📝 `cmd/headscale/cli/version.go` (+5 -1) 📝 `cmd/headscale/headscale.go` (+1 -62) </details> ### 📄 Description Refactor configuration to a more default cobra config layout. Makes it more maintainable and easier extendable. --- <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 02:29:18 +01:00
adam closed this issue 2025-12-29 02:29:18 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1234