[PR #16] [MERGED] Reorganise the CLI structure #1198

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

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/16
Author: @juanfont
Created: 4/28/2021
Status: Merged
Merged: 4/29/2021
Merged by: @juanfont

Base: mainHead: cmd-funcs-to-cli


📝 Commits (2)

  • 77e5255 Move the CLI functiontionality to the CLI package
  • 7646bd8 CLI stuff should be in the cmd/ path

📊 Changes

9 files changed (+410 additions, -355 deletions)

View changed files

📝 cli.go (+0 -64)
cmd/headscale/cli/namespaces.go (+56 -0)
cmd/headscale/cli/nodes.go (+36 -0)
cmd/headscale/cli/preauthkeys.go (+83 -0)
cmd/headscale/cli/routes.go (+53 -0)
cmd/headscale/cli/server.go (+25 -0)
cmd/headscale/cli/utils.go (+74 -0)
📝 cmd/headscale/headscale.go (+14 -291)
routes.go (+69 -0)

📄 Description

cmd/headscale/headscale.go was getting already a bit out of control. These commits changes a bit the structure for the sake of tidiness, but dumping into the cli package the CLI funcs.


🔄 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/16 **Author:** [@juanfont](https://github.com/juanfont) **Created:** 4/28/2021 **Status:** ✅ Merged **Merged:** 4/29/2021 **Merged by:** [@juanfont](https://github.com/juanfont) **Base:** `main` ← **Head:** `cmd-funcs-to-cli` --- ### 📝 Commits (2) - [`77e5255`](https://github.com/juanfont/headscale/commit/77e5255fdd254a07e59e4ff599b292dc1f0b288a) Move the CLI functiontionality to the CLI package - [`7646bd8`](https://github.com/juanfont/headscale/commit/7646bd8fd4de084ad17a6803e40f363ce3f16068) CLI stuff should be in the cmd/ path ### 📊 Changes **9 files changed** (+410 additions, -355 deletions) <details> <summary>View changed files</summary> 📝 `cli.go` (+0 -64) ➕ `cmd/headscale/cli/namespaces.go` (+56 -0) ➕ `cmd/headscale/cli/nodes.go` (+36 -0) ➕ `cmd/headscale/cli/preauthkeys.go` (+83 -0) ➕ `cmd/headscale/cli/routes.go` (+53 -0) ➕ `cmd/headscale/cli/server.go` (+25 -0) ➕ `cmd/headscale/cli/utils.go` (+74 -0) 📝 `cmd/headscale/headscale.go` (+14 -291) ➕ `routes.go` (+69 -0) </details> ### 📄 Description `cmd/headscale/headscale.go` was getting already a bit out of control. These commits changes a bit the structure for the sake of tidiness, but dumping into the `cli` package the CLI funcs. --- <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:11 +01:00
adam closed this issue 2025-12-29 02:29:11 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1198