Skip to content

Commit

Permalink
misc: switch everything to globalping.io
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKolarik committed Sep 25, 2024
1 parent 8cfd0de commit 6b5f095
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1 align="center"> <a href="https://www.jsdelivr.com/globalping"><img width="28" alt="Globalping icon" src="https://user-images.githubusercontent.com/1834071/216975126-01529980-a87e-478c-8ab3-bf7d927a1986.png"></a> Globalping CLI </h1>
<h1 align="center"> <a href="https://globalping.io"><img width="28" alt="Globalping icon" src="https://user-images.githubusercontent.com/1834071/216975126-01529980-a87e-478c-8ab3-bf7d927a1986.png"></a> Globalping CLI </h1>

<p align="center">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!</p>

Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion cmd/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
2 changes: 1 addition & 1 deletion view/default_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion view/json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
2 changes: 1 addition & 1 deletion view/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions view/share_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
})

Expand All @@ -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())
})

Expand All @@ -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())
})
Expand Down

0 comments on commit 6b5f095

Please sign in to comment.