From fe9082157bb4918c5a7bfecd17dec0c44bfac77b Mon Sep 17 00:00:00 2001 From: SuperCoolPencil Date: Sat, 2 May 2026 00:38:40 +0530 Subject: [PATCH] chore: --- cmd/runservice_std.go | 2 +- cmd/runservice_termux.go | 2 +- cmd/service_android_test.go | 2 +- cmd/service_kardianos.go | 2 +- cmd/service_kardianos_test.go | 2 +- cmd/service_termux.go | 2 +- cmd/service_termux_test.go | 2 +- cmd/service_test.go | 1 - cmd/service_ui_std.go | 2 +- cmd/service_ui_termux.go | 2 +- 10 files changed, 9 insertions(+), 10 deletions(-) diff --git a/cmd/runservice_std.go b/cmd/runservice_std.go index aa129265..1be86a50 100644 --- a/cmd/runservice_std.go +++ b/cmd/runservice_std.go @@ -20,4 +20,4 @@ func RunService() error { } return s.Run() -} \ No newline at end of file +} diff --git a/cmd/runservice_termux.go b/cmd/runservice_termux.go index 67496b4c..c4e83ce2 100644 --- a/cmd/runservice_termux.go +++ b/cmd/runservice_termux.go @@ -7,4 +7,4 @@ package cmd // as a runit service via 'surge service install/start/stop' which uses sv directly. func RunService() error { return rootCmd.Execute() -} \ No newline at end of file +} diff --git a/cmd/service_android_test.go b/cmd/service_android_test.go index 87b5aa76..008cb880 100644 --- a/cmd/service_android_test.go +++ b/cmd/service_android_test.go @@ -16,4 +16,4 @@ func TestRunServiceDoesNotHangOnAndroid(t *testing.T) { err := RunService() assert.NoError(t, err) -} \ No newline at end of file +} diff --git a/cmd/service_kardianos.go b/cmd/service_kardianos.go index 6fe6ffd3..6952ed20 100644 --- a/cmd/service_kardianos.go +++ b/cmd/service_kardianos.go @@ -146,4 +146,4 @@ func init() { serviceCmd.AddCommand(serviceStartCmd) serviceCmd.AddCommand(serviceStopCmd) serviceCmd.AddCommand(serviceStatusCmd) -} \ No newline at end of file +} diff --git a/cmd/service_kardianos_test.go b/cmd/service_kardianos_test.go index 1ee3a784..6ac94201 100644 --- a/cmd/service_kardianos_test.go +++ b/cmd/service_kardianos_test.go @@ -106,4 +106,4 @@ func TestProgramContextCancellation(t *testing.T) { assert.NotNil(t, cancel) waitStop(t, p, s) -} \ No newline at end of file +} diff --git a/cmd/service_termux.go b/cmd/service_termux.go index 0afff485..746a643a 100644 --- a/cmd/service_termux.go +++ b/cmd/service_termux.go @@ -207,4 +207,4 @@ func init() { serviceCmd.AddCommand(serviceStartCmd) serviceCmd.AddCommand(serviceStopCmd) serviceCmd.AddCommand(serviceStatusCmd) -} \ No newline at end of file +} diff --git a/cmd/service_termux_test.go b/cmd/service_termux_test.go index d0991da3..b649f75e 100644 --- a/cmd/service_termux_test.go +++ b/cmd/service_termux_test.go @@ -57,4 +57,4 @@ func TestTermuxServiceDirDefault(t *testing.T) { os.Setenv("PREFIX", "/data/data/com.termux/files/usr") result := termuxServiceDir() assert.Equal(t, "/data/data/com.termux/files/usr/var/service/surge", result) -} \ No newline at end of file +} diff --git a/cmd/service_test.go b/cmd/service_test.go index de13e5a6..138e2870 100644 --- a/cmd/service_test.go +++ b/cmd/service_test.go @@ -29,4 +29,3 @@ func TestServiceCommandRegistration(t *testing.T) { } assert.True(t, found, "service command not found in rootCmd") } - diff --git a/cmd/service_ui_std.go b/cmd/service_ui_std.go index 2088e0a9..4822c62b 100644 --- a/cmd/service_ui_std.go +++ b/cmd/service_ui_std.go @@ -26,4 +26,4 @@ func configureServiceUI(m *tui.RootModel) { _ = s.Stop() return s.Uninstall() } -} \ No newline at end of file +} diff --git a/cmd/service_ui_termux.go b/cmd/service_ui_termux.go index 238bbef2..7e99a173 100644 --- a/cmd/service_ui_termux.go +++ b/cmd/service_ui_termux.go @@ -79,4 +79,4 @@ func uninstallTermuxService() error { svcDir := termuxServiceDir() _ = stopTermuxService() return os.RemoveAll(svcDir) -} \ No newline at end of file +}