From 6b5f0951f8e1a636d48544bf89a2a3f49f592e1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kol=C3=A1rik?= Date: Wed, 25 Sep 2024 16:21:43 +0200 Subject: [PATCH] misc: switch everything to globalping.io --- .goreleaser.yaml | 4 ++-- README.md | 16 ++++++++-------- cmd/utils_test.go | 2 +- view/default_test.go | 2 +- view/json_test.go | 2 +- view/output.go | 2 +- view/share_test.go | 6 +++--- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 17481b4..f8b1c1f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -75,7 +75,7 @@ chocolateys: title: Globalping CLI authors: Ayuhito - project_url: https://www.jsdelivr.com/globalping + project_url: https://globalping.io # App's icon. icon_url: 'https://cdn.jsdelivr.net/gh/jimaek/akulov.com@e4e566ae5a067b02678b3cdf6e55fc6bcfb2c1c8/img/globalping-choco-icon.png' @@ -98,7 +98,7 @@ chocolateys: - Human friendly format and output - Cross-platform. Linux, MacOS, Windows are all supported - Auto-updates via RPM/DEB/Chocolatey repos - - [Check our website for online tools, our Slack app and more!](https://www.jsdelivr.com/globalping) + - [Check our website for online tools, our Slack app and more!](https://globalping.io) ## Getting Started with Globalping CLI diff --git a/README.md b/README.md index aec55c4..ef30ae0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -

Globalping icon Globalping CLI

+

Globalping icon Globalping CLI

Access a global network of probes without leaving your console. Benchmark your internet infrastructure, automate uptime and latency monitoring with scripts, or optimize your anycast network – from any location and free of charge. Powered by the Globalping community!

@@ -14,7 +14,7 @@ - Human-friendly format and output - Supports Linux, MacOS, and Windows - Auto-updated via all automated installation methods -- Explore additional [Globalping integrations](https://www.jsdelivr.com/globalping/integrations), including our online tools, Slack app, and more +- Explore additional [Globalping integrations](https://globalping.io/integrations), including our online tools, Slack app, and more ## Installation @@ -208,7 +208,7 @@ google.com. 300 IN A 142.250.183.206 ;; SERVER: x.x.x.x#53(x.x.x.x) ;; WHEN: Mon Jul 10 10:38:00 UTC 2023 ;; MSG SIZE rcvd: 55 -> View the results online: https://www.jsdelivr.com/globalping?measurement=xrfXUEAOGfzwfHFz +> View the results online: https://globalping.io?measurement=xrfXUEAOGfzwfHFz ``` #### Reselect probes @@ -327,15 +327,15 @@ You can view the history of your current session's measurements by running the  ```bash globalping history 1 | 2024-03-27 11:56:46 | ping google.com -> https://www.jsdelivr.com/globalping?measurement=itcR65tYCqbouXib +> https://globalping.io?measurement=itcR65tYCqbouXib - | 2024-03-27 11:57:01 | dns google.com from last -> https://www.jsdelivr.com/globalping?measurement=kWc5UBK9A6G4RUYM +> https://globalping.io?measurement=kWc5UBK9A6G4RUYM 2 | 2024-03-27 11:57:20 | traceroute google.com from New York --limit 2 -> https://www.jsdelivr.com/globalping?measurement=Yz7A1UifUonZsC3C +> https://globalping.io?measurement=Yz7A1UifUonZsC3C 3 | 2024-03-27 11:57:37 | mtr google.com from New York --limit 2 -> https://www.jsdelivr.com/globalping?measurement=SX1NBgfDKiabM1vZ +> https://globalping.io?measurement=SX1NBgfDKiabM1vZ 4 | 2024-03-27 11:57:52 | http google.com from London,Belgium --limit 2 --method get --ci -> https://www.jsdelivr.com/globalping?measurement=eclwFSYX0zgU10Cs +> https://globalping.io?measurement=eclwFSYX0zgU10Cs ``` > [!TIP] diff --git a/cmd/utils_test.go b/cmd/utils_test.go index a1877ba..6ab236e 100644 --- a/cmd/utils_test.go +++ b/cmd/utils_test.go @@ -129,5 +129,5 @@ func createDefaultExpectedHistoryLogItem(index, measurements string, cmd string) } func createDefaultExpectedHistoryItem(index string, time string, cmd string, measurements string) string { - return fmt.Sprintf("%s | %s | %s\n> https://www.jsdelivr.com/globalping?measurement=%s\n", index, time, cmd, measurements) + return fmt.Sprintf("%s | %s | %s\n> https://globalping.io?measurement=%s\n", index, time, cmd, measurements) } diff --git a/view/default_test.go b/view/default_test.go index dc1555c..4a493cf 100644 --- a/view/default_test.go +++ b/view/default_test.go @@ -142,7 +142,7 @@ func Test_Output_Default_HTTP_Get_Share(t *testing.T) { assert.Equal(t, fmt.Sprintf(`> Berlin, DE, EU, Network 1 (AS123) > New York (NY), US, NA, Network 2 (AS567) -> View the results online: https://www.jsdelivr.com/globalping?measurement=%s +> View the results online: https://globalping.io?measurement=%s `, measurementID1), errW.String()) assert.Equal(t, `Body 1 diff --git a/view/json_test.go b/view/json_test.go index b3efb94..c454490 100644 --- a/view/json_test.go +++ b/view/json_test.go @@ -40,7 +40,7 @@ func Test_Output_Json(t *testing.T) { assert.NoError(t, err) assert.Equal(t, fmt.Sprintf(`{"fake": "results"} -> View the results online: https://www.jsdelivr.com/globalping?measurement=%s +> View the results online: https://globalping.io?measurement=%s `, measurementID1), w.String()) } diff --git a/view/output.go b/view/output.go index 4012bcd..7f94f93 100644 --- a/view/output.go +++ b/view/output.go @@ -10,7 +10,7 @@ import ( "github.com/mattn/go-runewidth" ) -var ShareURL = "https://www.jsdelivr.com/globalping?measurement=" +var ShareURL = "https://globalping.io?measurement=" func (v *viewer) Output(id string, m *globalping.MeasurementCreate) error { // Wait for first result to arrive from a probe before starting display (can be in-progress) diff --git a/view/share_test.go b/view/share_test.go index c7716cf..4b187df 100644 --- a/view/share_test.go +++ b/view/share_test.go @@ -22,7 +22,7 @@ func Test_OutputShare(t *testing.T) { viewer.OutputShare() assert.Equal(t, "", w.String()) - expectedOutput := fmt.Sprintf("\033[1;38;5;43m> View the results online: https://www.jsdelivr.com/globalping?measurement=%s\033[0m\n", measurementID1) + expectedOutput := fmt.Sprintf("\033[1;38;5;43m> View the results online: https://globalping.io?measurement=%s\033[0m\n", measurementID1) assert.Equal(t, expectedOutput, errw.String()) }) @@ -42,7 +42,7 @@ func Test_OutputShare(t *testing.T) { viewer.OutputShare() assert.Equal(t, "", w.String()) - expectedOutput := fmt.Sprintf("\n> View the results online: https://www.jsdelivr.com/globalping?measurement=%s.%s\n", measurementID1, measurementID2) + expectedOutput := fmt.Sprintf("\n> View the results online: https://globalping.io?measurement=%s.%s\n", measurementID1, measurementID2) assert.Equal(t, expectedOutput, errw.String()) }) @@ -67,7 +67,7 @@ func Test_OutputShare(t *testing.T) { viewer.OutputShare() assert.Equal(t, "", w.String()) - expectedOutput := fmt.Sprintf("\n> View the results online: https://www.jsdelivr.com/globalping?measurement=%s", measurementID2) + + expectedOutput := fmt.Sprintf("\n> View the results online: https://globalping.io?measurement=%s", measurementID2) + "\nFor long-running continuous mode measurements, only the last 16 packets are shared.\n" assert.Equal(t, expectedOutput, errw.String()) })