From d1f01317a13c9e256d43981556edb0ae9f8f59c4 Mon Sep 17 00:00:00 2001 From: Michael Feher Date: Tue, 7 Jan 2025 08:26:37 -0500 Subject: [PATCH 1/2] refactor: rename to nodekit --- .github/workflows/code_test.yaml | 2 +- .github/workflows/node_test.yaml | 36 +++++++++---------- .gitignore | 4 +-- CONTRIBUTING.md | 14 ++++---- Makefile | 4 +-- README.md | 30 ++++++++-------- VISION.md | 2 +- assets/footer.md | 2 +- cmd/bootstrap.go | 20 +++++------ cmd/catchup/catchup.go | 8 ++--- cmd/catchup/debug.go | 8 ++--- cmd/catchup/start.go | 8 ++--- cmd/catchup/stop.go | 8 ++--- cmd/configure/configure.go | 12 +++---- cmd/configure/service.go | 8 ++--- cmd/configure/utils.go | 2 +- cmd/debug.go | 12 +++---- cmd/install.go | 6 ++-- cmd/root.go | 22 ++++++------ cmd/start.go | 6 ++-- cmd/stop.go | 6 ++-- cmd/uninstall.go | 4 +-- cmd/upgrade.go | 6 ++-- cmd/utils/explanations/explanations.go | 8 ++--- cmd/utils/flags.go | 8 ++--- .../docs/reference/{algorun.md => nodekit.md} | 30 ++++++++-------- ...orun_bootstrap.md => nodekit_bootstrap.md} | 10 +++--- ...{algorun_catchup.md => nodekit_catchup.md} | 16 ++++----- ...chup_debug.md => nodekit_catchup_debug.md} | 10 +++--- ...chup_start.md => nodekit_catchup_start.md} | 10 +++--- ...atchup_stop.md => nodekit_catchup_stop.md} | 10 +++--- ...orun_configure.md => nodekit_configure.md} | 10 +++--- ...ervice.md => nodekit_configure_service.md} | 10 +++--- .../{algorun_debug.md => nodekit_debug.md} | 10 +++--- ...{algorun_install.md => nodekit_install.md} | 10 +++--- .../{algorun_start.md => nodekit_start.md} | 10 +++--- .../{algorun_stop.md => nodekit_stop.md} | 10 +++--- ...orun_uninstall.md => nodekit_uninstall.md} | 10 +++--- ...{algorun_upgrade.md => nodekit_upgrade.md} | 10 +++--- go.mod | 2 +- install.sh | 22 ++++++------ internal/algod/accounts.go | 8 ++--- internal/algod/accounts_test.go | 6 ++-- internal/algod/algod.go | 6 ++-- internal/algod/block.go | 2 +- internal/algod/block_test.go | 2 +- internal/algod/catchpoint.go | 2 +- internal/algod/client.go | 4 +-- internal/algod/fallback/algod.go | 6 ++-- internal/algod/linux/linux.go | 4 +-- internal/algod/mac/mac.go | 4 +-- internal/algod/metrics.go | 2 +- internal/algod/metrics_test.go | 4 +-- internal/algod/participation/participation.go | 2 +- .../algod/participation/participation_test.go | 4 +-- internal/algod/state.go | 6 ++-- internal/algod/state_test.go | 4 +-- internal/algod/status.go | 2 +- internal/algod/status_test.go | 4 +-- internal/algod/utils/utils.go | 2 +- internal/algod/version.go | 2 +- internal/system/cmds.go | 2 +- internal/test/client.go | 4 +-- internal/test/mock/fixtures.go | 2 +- internal/test/utils.go | 2 +- main.go | 2 +- ...orun_bootstrap.md => nodekit_bootstrap.md} | 8 ++--- ...{algorun_catchup.md => nodekit_catchup.md} | 14 ++++---- ...chup_debug.md => nodekit_catchup_debug.md} | 8 ++--- ...chup_start.md => nodekit_catchup_start.md} | 8 ++--- ...atchup_stop.md => nodekit_catchup_stop.md} | 8 ++--- ...orun_configure.md => nodekit_configure.md} | 8 ++--- ...ervice.md => nodekit_configure_service.md} | 8 ++--- man/{algorun_debug.md => nodekit_debug.md} | 8 ++--- ...{algorun_install.md => nodekit_install.md} | 8 ++--- man/{algorun_start.md => nodekit_start.md} | 8 ++--- man/{algorun_stop.md => nodekit_stop.md} | 8 ++--- ...orun_uninstall.md => nodekit_uninstall.md} | 8 ++--- ...{algorun_upgrade.md => nodekit_upgrade.md} | 8 ++--- playbook.yaml | 16 ++++----- scripts/documentation.go | 6 ++-- ui/README.md | 4 +-- ui/app/accounts.go | 2 +- ui/app/app_test.go | 6 ++-- ui/app/keys.go | 6 ++-- ui/app/modal.go | 2 +- ui/app/url.go | 6 ++-- ui/bootstrap/model.go | 2 +- ui/internal/test/state.go | 6 ++-- ui/modal/controller.go | 10 +++--- ui/modal/modal_test.go | 8 ++--- ui/modal/model.go | 18 +++++----- ui/modal/view.go | 4 +-- ui/modals/confirm/confirm.go | 8 ++--- ui/modals/confirm/confirm_test.go | 4 +-- ui/modals/exception/error.go | 4 +-- ui/modals/generate/controller.go | 6 ++-- ui/modals/generate/generate_test.go | 2 +- ui/modals/generate/model.go | 2 +- ui/modals/generate/view.go | 2 +- ui/modals/info/info.go | 10 +++--- ui/modals/info/info_test.go | 4 +-- ui/modals/transaction/controller.go | 4 +-- ui/modals/transaction/model.go | 8 ++--- ui/modals/transaction/transaction_test.go | 6 ++-- ui/modals/transaction/view.go | 4 +-- ui/pages/accounts/accounts_test.go | 4 +-- ui/pages/accounts/controller.go | 6 ++-- ui/pages/accounts/model.go | 4 +-- ui/pages/accounts/view.go | 2 +- ui/pages/keys/controller.go | 8 ++--- ui/pages/keys/keys_test.go | 8 ++--- ui/pages/keys/model.go | 8 ++--- ui/pages/keys/view.go | 2 +- ui/protocol.go | 4 +-- ui/protocol_test.go | 2 +- ui/status.go | 4 +-- ui/status_test.go | 2 +- ui/viewport.go | 12 +++---- ui/viewport_test.go | 6 ++-- 120 files changed, 433 insertions(+), 433 deletions(-) rename docs/src/content/docs/reference/{algorun.md => nodekit.md} (58%) rename docs/src/content/docs/reference/{algorun_bootstrap.md => nodekit_bootstrap.md} (84%) rename docs/src/content/docs/reference/{algorun_catchup.md => nodekit_catchup.md} (75%) rename docs/src/content/docs/reference/{algorun_catchup_debug.md => nodekit_catchup_debug.md} (75%) rename docs/src/content/docs/reference/{algorun_catchup_start.md => nodekit_catchup_start.md} (83%) rename docs/src/content/docs/reference/{algorun_catchup_stop.md => nodekit_catchup_stop.md} (80%) rename docs/src/content/docs/reference/{algorun_configure.md => nodekit_configure.md} (78%) rename docs/src/content/docs/reference/{algorun_configure_service.md => nodekit_configure_service.md} (76%) rename docs/src/content/docs/reference/{algorun_debug.md => nodekit_debug.md} (82%) rename docs/src/content/docs/reference/{algorun_install.md => nodekit_install.md} (80%) rename docs/src/content/docs/reference/{algorun_start.md => nodekit_start.md} (86%) rename docs/src/content/docs/reference/{algorun_stop.md => nodekit_stop.md} (83%) rename docs/src/content/docs/reference/{algorun_uninstall.md => nodekit_uninstall.md} (81%) rename docs/src/content/docs/reference/{algorun_upgrade.md => nodekit_upgrade.md} (77%) rename man/{algorun_bootstrap.md => nodekit_bootstrap.md} (88%) rename man/{algorun_catchup.md => nodekit_catchup.md} (79%) rename man/{algorun_catchup_debug.md => nodekit_catchup_debug.md} (83%) rename man/{algorun_catchup_start.md => nodekit_catchup_start.md} (88%) rename man/{algorun_catchup_stop.md => nodekit_catchup_stop.md} (86%) rename man/{algorun_configure.md => nodekit_configure.md} (83%) rename man/{algorun_configure_service.md => nodekit_configure_service.md} (83%) rename man/{algorun_debug.md => nodekit_debug.md} (87%) rename man/{algorun_install.md => nodekit_install.md} (86%) rename man/{algorun_start.md => nodekit_start.md} (90%) rename man/{algorun_stop.md => nodekit_stop.md} (88%) rename man/{algorun_uninstall.md => nodekit_uninstall.md} (87%) rename man/{algorun_upgrade.md => nodekit_upgrade.md} (83%) diff --git a/.github/workflows/code_test.yaml b/.github/workflows/code_test.yaml index 9cd454f3..92356c93 100644 --- a/.github/workflows/code_test.yaml +++ b/.github/workflows/code_test.yaml @@ -41,7 +41,7 @@ jobs: run: go vet ./... - name: Build - run: go build -o bin/algorun *.go + run: go build -o bin/nodekit *.go - name: Unit Tests run: make test diff --git a/.github/workflows/node_test.yaml b/.github/workflows/node_test.yaml index 35d91d43..f4e6fb4c 100644 --- a/.github/workflows/node_test.yaml +++ b/.github/workflows/node_test.yaml @@ -26,19 +26,19 @@ jobs: export GOCOVERDIR=$(pwd)/coverage mkdir -p $GOCOVERDIR go build -cover . - ./algorun-tui install + ./nodekit install systemctl status algorand.service export TOKEN=$(cat /var/lib/algorand/algod.admin.token) curl http://localhost:8080/v2/participation -H "X-Algo-API-Token: $TOKEN" | grep "null" - ./algorun-tui stop - ./algorun-tui upgrade - ./algorun-tui debug + ./nodekit stop + ./nodekit upgrade + ./nodekit debug sleep 10 - ./algorun-tui catchup - ./algorun-tui catchup debug - ./algorun-tui catchup stop - ./algorun-tui stop - ./algorun-tui uninstall + ./nodekit catchup + ./nodekit catchup debug + ./nodekit catchup stop + ./nodekit stop + ./nodekit uninstall go tool covdata textfmt -i=$GOCOVERDIR -o coverage.txt - name: Upload results to Codecov @@ -60,20 +60,20 @@ jobs: export GOCOVERDIR=$(pwd)/coverage mkdir -p $GOCOVERDIR go build -cover . - ./algorun-tui install + ./nodekit install sudo launchctl print system/com.algorand.algod sleep 5 export TOKEN=$(cat ~/.algorand/algod.admin.token) curl http://localhost:8080/v2/participation -H "X-Algo-API-Token: $TOKEN" | grep "null" - ./algorun-tui stop - ./algorun-tui upgrade - ./algorun-tui debug + ./nodekit stop + ./nodekit upgrade + ./nodekit debug sleep 10 - ./algorun-tui catchup - ./algorun-tui catchup debug - ./algorun-tui catchup stop - ./algorun-tui stop - ./algorun-tui uninstall + ./nodekit catchup + ./nodekit catchup debug + ./nodekit catchup stop + ./nodekit stop + ./nodekit uninstall go tool covdata textfmt -i=$GOCOVERDIR -o coverage.txt - name: Upload results to Codecov diff --git a/.gitignore b/.gitignore index c7a3058c..a08a225b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -algorun-tui +nodekit coverage bin .data @@ -36,4 +36,4 @@ go.work.sum .env # user-created file -.algorun.y*ml +.nodekit.y*ml diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 24b1b22d..577ae06b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -7,13 +7,13 @@ A guide on how to contribute to this project. Clone the project ```bash -git clone git@github.com:algorandfoundation/algorun-tui.git +git clone git@github.com:algorandfoundation/nodekit.git ``` Change to the directory ```bash -cd algorun-tui +cd nodekit ``` Build the project @@ -29,7 +29,7 @@ Optionally, run a sandboxed participation node docker compose up ``` -Create a configuration file for the participation node in the root directory of the project (.algorun.yaml) +Create a configuration file for the participation node in the root directory of the project (.nodekit.yaml) ```yaml algod-endpoint: http://localhost:8080 @@ -40,13 +40,13 @@ Launch the TUI > [!NOTE] -> If you skipped the docker container or config file, try running `./bin/algorun` standalone, +> If you skipped the docker container or config file, try running `./bin/nodekit` standalone, > which will detect your algorand data directory from the `ALGORAND_DATA` environment variable that works for `goal`. > Otherwise, provide the `--algod-endpoint` and `--algod-token` arguments so that it can find your node. -> Note that algorun requires the admin algod token. +> Note that nodekit requires the admin algod token. ```bash -./bin/algorun +./bin/nodekit ``` # 📂 Folder Structure @@ -67,7 +67,7 @@ All submodules and endpoints **SHOULD** align with the command/ui namespaces. Example Command: ```bash -algorun status +nodekit status ``` Example Structure diff --git a/Makefile b/Makefile index a9c60543..82328517 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ build: - CGO_ENABLED=0 go build -o bin/algorun . + CGO_ENABLED=0 go build -o bin/nodekit . test: go test -coverprofile=coverage.out -coverpkg=./... -covermode=atomic ./... generate: - oapi-codegen -config generate.yaml https://raw.githubusercontent.com/algorand/go-algorand/v3.26.0-stable/daemon/algod/api/algod.oas3.yml \ No newline at end of file + oapi-codegen -config generate.yaml https://raw.githubusercontent.com/algorand/go-algorand/v3.26.0-stable/daemon/algod/api/algod.oas3.yml diff --git a/README.md b/README.md index 64d0f3b0..aa63c0c4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## algorun +## nodekit Manage Algorand nodes from the command line @@ -11,40 +11,40 @@ Manage Algorand nodes from the command line Manage Algorand nodes from the command line Overview: -Welcome to Algorun, a TUI for managing Algorand nodes. +Welcome to NodeKit, a TUI for managing Algorand nodes. A one stop shop for managing Algorand nodes, including node creation, configuration, and management. Note: This is still a work in progress. Expect bugs and rough edges. ``` -algorun [flags] +nodekit [flags] ``` ### Options ``` -d, --datadir string Data directory for the node - -h, --help help for algorun + -h, --help help for nodekit ``` ### SEE ALSO -* [algorun bootstrap](/man/algorun_bootstrap.md) - Initialize a fresh node -* [algorun catchup](/man/algorun_catchup.md) - Manage Fast-Catchup for your node -* [algorun configure](/man/algorun_configure.md) - Change settings on the system (WIP) -* [algorun debug](/man/algorun_debug.md) - Display debugging information -* [algorun install](/man/algorun_install.md) - Install the node daemon -* [algorun start](/man/algorun_start.md) - Start the node daemon -* [algorun stop](/man/algorun_stop.md) - Stop the node daemon -* [algorun uninstall](/man/algorun_uninstall.md) - Uninstall the node daemon -* [algorun upgrade](/man/algorun_upgrade.md) - Upgrade the node daemon +* [nodekit bootstrap](/man/nodekit_bootstrap.md) - Initialize a fresh node +* [nodekit catchup](/man/nodekit_catchup.md) - Manage Fast-Catchup for your node +* [nodekit configure](/man/nodekit_configure.md) - Change settings on the system (WIP) +* [nodekit debug](/man/nodekit_debug.md) - Display debugging information +* [nodekit install](/man/nodekit_install.md) - Install the node daemon +* [nodekit start](/man/nodekit_start.md) - Start the node daemon +* [nodekit stop](/man/nodekit_stop.md) - Stop the node daemon +* [nodekit uninstall](/man/nodekit_uninstall.md) - Uninstall the node daemon +* [nodekit upgrade](/man/nodekit_upgrade.md) - Upgrade the node daemon -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 ### Installing Connect to your server and run the installation script which will bootstrap your node. ```bash -curl -fsSL https://raw.githubusercontent.com/algorandfoundation/algorun-tui/refs/heads/main/install.sh | bash +curl -fsSL https://raw.githubusercontent.com/algorandfoundation/nodekit/refs/heads/main/install.sh | bash ``` \ No newline at end of file diff --git a/VISION.md b/VISION.md index baa4abd4..2a63413d 100644 --- a/VISION.md +++ b/VISION.md @@ -6,7 +6,7 @@ is largely inspired by it. # Motivation -**Staking Rewards™️** require additional configuration and monitoring which this **Hacktui** seeks to simplify. +**Staking Rewards™️** require additional configuration and monitoring which this **NodeKit** seeks to simplify. ## Primary Goals diff --git a/assets/footer.md b/assets/footer.md index 14ddde36..d6d3bfee 100644 --- a/assets/footer.md +++ b/assets/footer.md @@ -3,5 +3,5 @@ Connect to your server and run the installation script which will bootstrap your node. ```bash -curl -fsSL https://raw.githubusercontent.com/algorandfoundation/algorun-tui/refs/heads/main/install.sh | bash +curl -fsSL https://raw.githubusercontent.com/algorandfoundation/nodekit/refs/heads/main/install.sh | bash ``` \ No newline at end of file diff --git a/cmd/bootstrap.go b/cmd/bootstrap.go index b49aa292..a9bcac02 100644 --- a/cmd/bootstrap.go +++ b/cmd/bootstrap.go @@ -3,16 +3,16 @@ package cmd import ( "context" "fmt" - "github.com/algorandfoundation/algorun-tui/api" - cmdutils "github.com/algorandfoundation/algorun-tui/cmd/utils" - "github.com/algorandfoundation/algorun-tui/cmd/utils/explanations" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/internal/algod/utils" - "github.com/algorandfoundation/algorun-tui/internal/system" - "github.com/algorandfoundation/algorun-tui/ui" - "github.com/algorandfoundation/algorun-tui/ui/app" - "github.com/algorandfoundation/algorun-tui/ui/bootstrap" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/api" + cmdutils "github.com/algorandfoundation/nodekit/cmd/utils" + "github.com/algorandfoundation/nodekit/cmd/utils/explanations" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/internal/algod/utils" + "github.com/algorandfoundation/nodekit/internal/system" + "github.com/algorandfoundation/nodekit/ui" + "github.com/algorandfoundation/nodekit/ui/app" + "github.com/algorandfoundation/nodekit/ui/bootstrap" + "github.com/algorandfoundation/nodekit/ui/style" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/glamour" "github.com/charmbracelet/lipgloss" diff --git a/cmd/catchup/catchup.go b/cmd/catchup/catchup.go index 2aac22e6..8ebd2de8 100644 --- a/cmd/catchup/catchup.go +++ b/cmd/catchup/catchup.go @@ -2,10 +2,10 @@ package catchup import ( "context" - "github.com/algorandfoundation/algorun-tui/api" - "github.com/algorandfoundation/algorun-tui/cmd/utils" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/api" + "github.com/algorandfoundation/nodekit/cmd/utils" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/ui/style" "github.com/charmbracelet/lipgloss" "github.com/charmbracelet/log" "github.com/spf13/cobra" diff --git a/cmd/catchup/debug.go b/cmd/catchup/debug.go index e561000c..c15a4f4f 100644 --- a/cmd/catchup/debug.go +++ b/cmd/catchup/debug.go @@ -4,10 +4,10 @@ import ( "context" "encoding/json" "fmt" - "github.com/algorandfoundation/algorun-tui/api" - "github.com/algorandfoundation/algorun-tui/cmd/utils" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/api" + "github.com/algorandfoundation/nodekit/cmd/utils" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/ui/style" "github.com/charmbracelet/lipgloss" "github.com/charmbracelet/log" "github.com/spf13/cobra" diff --git a/cmd/catchup/start.go b/cmd/catchup/start.go index f6935925..b6febf2b 100644 --- a/cmd/catchup/start.go +++ b/cmd/catchup/start.go @@ -2,10 +2,10 @@ package catchup import ( "context" - "github.com/algorandfoundation/algorun-tui/api" - "github.com/algorandfoundation/algorun-tui/cmd/utils" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/api" + "github.com/algorandfoundation/nodekit/cmd/utils" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/ui/style" "github.com/charmbracelet/lipgloss" "github.com/charmbracelet/log" "github.com/spf13/cobra" diff --git a/cmd/catchup/stop.go b/cmd/catchup/stop.go index 1637cbc5..7b1880d9 100644 --- a/cmd/catchup/stop.go +++ b/cmd/catchup/stop.go @@ -2,10 +2,10 @@ package catchup import ( "context" - "github.com/algorandfoundation/algorun-tui/api" - "github.com/algorandfoundation/algorun-tui/cmd/utils" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/api" + "github.com/algorandfoundation/nodekit/cmd/utils" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/ui/style" "github.com/charmbracelet/lipgloss" "github.com/charmbracelet/log" "github.com/spf13/cobra" diff --git a/cmd/configure/configure.go b/cmd/configure/configure.go index 2a09d85e..9cbb6f63 100644 --- a/cmd/configure/configure.go +++ b/cmd/configure/configure.go @@ -3,10 +3,10 @@ package configure import ( "bytes" "fmt" - "github.com/algorandfoundation/algorun-tui/cmd/utils/explanations" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/internal/algod/utils" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/cmd/utils/explanations" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/internal/algod/utils" + "github.com/algorandfoundation/nodekit/ui/style" "github.com/charmbracelet/lipgloss" "os" "os/exec" @@ -70,7 +70,7 @@ func configureNode() error { // if !systemServiceConfigure { - fmt.Println("Configuring Data directory for algod started through Algorun...") + fmt.Println("Configuring Data directory for algod started through NodeKit...") } algorandData := os.Getenv("ALGORAND_DATA") @@ -158,7 +158,7 @@ func configureNode() error { } // Deep search - if promptWrapperNo("Do you want Algorun to do a deep search for pre-existing Algorand Data directories? (y/n)") { + if promptWrapperNo("Do you want NodeKit to do a deep search for pre-existing Algorand Data directories? (y/n)") { fmt.Println("User chose not to search for more pre-existing Algorand Data directories. Exiting...") os.Exit(0) } diff --git a/cmd/configure/service.go b/cmd/configure/service.go index 1d2613a4..ee0af549 100644 --- a/cmd/configure/service.go +++ b/cmd/configure/service.go @@ -2,10 +2,10 @@ package configure import ( "errors" - "github.com/algorandfoundation/algorun-tui/cmd/utils/explanations" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/internal/system" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/cmd/utils/explanations" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/internal/system" + "github.com/algorandfoundation/nodekit/ui/style" "github.com/charmbracelet/lipgloss" "github.com/spf13/cobra" ) diff --git a/cmd/configure/utils.go b/cmd/configure/utils.go index 16926921..a9222d2c 100644 --- a/cmd/configure/utils.go +++ b/cmd/configure/utils.go @@ -2,7 +2,7 @@ package configure import ( "fmt" - "github.com/algorandfoundation/algorun-tui/internal/system" + "github.com/algorandfoundation/nodekit/internal/system" "github.com/manifoldco/promptui" "github.com/spf13/cobra" "os" diff --git a/cmd/debug.go b/cmd/debug.go index 444c7fec..1a5c1515 100644 --- a/cmd/debug.go +++ b/cmd/debug.go @@ -3,12 +3,12 @@ package cmd import ( "encoding/json" "fmt" - cmdutils "github.com/algorandfoundation/algorun-tui/cmd/utils" - "github.com/algorandfoundation/algorun-tui/cmd/utils/explanations" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/internal/algod/utils" - "github.com/algorandfoundation/algorun-tui/internal/system" - "github.com/algorandfoundation/algorun-tui/ui/style" + cmdutils "github.com/algorandfoundation/nodekit/cmd/utils" + "github.com/algorandfoundation/nodekit/cmd/utils/explanations" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/internal/algod/utils" + "github.com/algorandfoundation/nodekit/internal/system" + "github.com/algorandfoundation/nodekit/ui/style" "github.com/charmbracelet/lipgloss" "github.com/charmbracelet/log" "github.com/spf13/cobra" diff --git a/cmd/install.go b/cmd/install.go index 287cb3d7..5f25fa17 100644 --- a/cmd/install.go +++ b/cmd/install.go @@ -1,9 +1,9 @@ package cmd import ( - "github.com/algorandfoundation/algorun-tui/cmd/utils/explanations" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/cmd/utils/explanations" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/ui/style" "github.com/charmbracelet/lipgloss" "github.com/charmbracelet/log" "github.com/spf13/cobra" diff --git a/cmd/root.go b/cmd/root.go index e590ae0d..65ccdba6 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -2,15 +2,15 @@ package cmd import ( "context" - "github.com/algorandfoundation/algorun-tui/api" - "github.com/algorandfoundation/algorun-tui/cmd/catchup" - "github.com/algorandfoundation/algorun-tui/cmd/configure" - "github.com/algorandfoundation/algorun-tui/cmd/utils" - "github.com/algorandfoundation/algorun-tui/cmd/utils/explanations" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/internal/system" - "github.com/algorandfoundation/algorun-tui/ui" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/api" + "github.com/algorandfoundation/nodekit/cmd/catchup" + "github.com/algorandfoundation/nodekit/cmd/configure" + "github.com/algorandfoundation/nodekit/cmd/utils" + "github.com/algorandfoundation/nodekit/cmd/utils/explanations" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/internal/system" + "github.com/algorandfoundation/nodekit/ui" + "github.com/algorandfoundation/nodekit/ui/style" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" "github.com/charmbracelet/log" @@ -19,7 +19,7 @@ import ( ) var ( - Name = "algorun" + Name = "nodekit" // algodEndpoint defines the URI address of the Algorand node, including the protocol (http/https), for client communication. algodData string @@ -38,7 +38,7 @@ var ( style.Bold(short), "", style.BoldUnderline("Overview:"), - "Welcome to Algorun, a TUI for managing Algorand nodes.", + "Welcome to NodeKit, a TUI for managing Algorand nodes.", "A one stop shop for managing Algorand nodes, including node creation, configuration, and management.", "", style.Yellow.Render(explanations.ExperimentalWarning), diff --git a/cmd/start.go b/cmd/start.go index 04a4058e..c95400b8 100644 --- a/cmd/start.go +++ b/cmd/start.go @@ -1,9 +1,9 @@ package cmd import ( - "github.com/algorandfoundation/algorun-tui/cmd/utils/explanations" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/cmd/utils/explanations" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/ui/style" "github.com/charmbracelet/lipgloss" "github.com/charmbracelet/log" "github.com/spf13/cobra" diff --git a/cmd/stop.go b/cmd/stop.go index 18406384..553d4d20 100644 --- a/cmd/stop.go +++ b/cmd/stop.go @@ -1,9 +1,9 @@ package cmd import ( - "github.com/algorandfoundation/algorun-tui/cmd/utils/explanations" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/cmd/utils/explanations" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/ui/style" "github.com/charmbracelet/lipgloss" "github.com/charmbracelet/log" "time" diff --git a/cmd/uninstall.go b/cmd/uninstall.go index 521d7bdd..c0c31553 100644 --- a/cmd/uninstall.go +++ b/cmd/uninstall.go @@ -1,8 +1,8 @@ package cmd import ( - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/ui/style" "github.com/charmbracelet/lipgloss" "github.com/charmbracelet/log" "github.com/spf13/cobra" diff --git a/cmd/upgrade.go b/cmd/upgrade.go index ce7442a3..9c7ceb30 100644 --- a/cmd/upgrade.go +++ b/cmd/upgrade.go @@ -1,9 +1,9 @@ package cmd import ( - "github.com/algorandfoundation/algorun-tui/cmd/utils/explanations" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/cmd/utils/explanations" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/ui/style" "github.com/charmbracelet/lipgloss" "github.com/charmbracelet/log" "github.com/spf13/cobra" diff --git a/cmd/utils/explanations/explanations.go b/cmd/utils/explanations/explanations.go index 8ca94b8b..12672c9e 100644 --- a/cmd/utils/explanations/explanations.go +++ b/cmd/utils/explanations/explanations.go @@ -1,7 +1,7 @@ package explanations import ( - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/ui/style" "github.com/charmbracelet/lipgloss" ) @@ -10,7 +10,7 @@ var NodeNotFound = lipgloss.JoinHorizontal(lipgloss.Left, style.Cyan.Render("Explanation"), style.Bold(": "), ) + - "algorun could not find your node automatically. Ensure the node is installed and running: If you have not installed algod yet, run \"nodekit bootstrap\". If your node is installed, start it with \"nodekit start\". \n\n" + + "nodekit could not find your node automatically. Ensure the node is installed and running: If you have not installed algod yet, run \"nodekit bootstrap\". If your node is installed, start it with \"nodekit start\". \n\n" + lipgloss.JoinHorizontal(lipgloss.Left, "Otherwise for custom installations, provide ", style.Bold("--datadir"), @@ -24,7 +24,7 @@ var NodeNotFound = lipgloss.JoinHorizontal(lipgloss.Left, var Unreachable = "Explanation: Could not reach algod. Check that algod is running and the provided connection arguments.\n" // TokenInvalid provides an error message indicating the administrative token for algod is invalid or missing. -var TokenInvalid = "Explanation: algod token is invalid. Algorun requires the " + style.BoldUnderline("admin token") + " for algod. You can find this in the algod.admin.token file in the algod data directory.\n" +var TokenInvalid = "Explanation: algod token is invalid. NodeKit requires the " + style.BoldUnderline("admin token") + " for algod. You can find this in the algod.admin.token file in the algod data directory.\n" // TokenNotAdmin is an explanatory message shown when the provided token lacks admin privileges for the algod node. -var TokenNotAdmin = "Explanation: algorun requires the " + style.BoldUnderline("admin token") + " for algod. You can find this in the algod.admin.token file in the algod data directory.\n" +var TokenNotAdmin = "Explanation: nodekit requires the " + style.BoldUnderline("admin token") + " for algod. You can find this in the algod.admin.token file in the algod data directory.\n" diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 42c40330..e41e6987 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -1,10 +1,10 @@ package utils import ( - "github.com/algorandfoundation/algorun-tui/api" - "github.com/algorandfoundation/algorun-tui/cmd/utils/explanations" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/api" + "github.com/algorandfoundation/nodekit/cmd/utils/explanations" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/ui/style" "github.com/charmbracelet/log" "github.com/spf13/cobra" "github.com/spf13/viper" diff --git a/docs/src/content/docs/reference/algorun.md b/docs/src/content/docs/reference/nodekit.md similarity index 58% rename from docs/src/content/docs/reference/algorun.md rename to docs/src/content/docs/reference/nodekit.md index 1e6cfa80..39f7447e 100644 --- a/docs/src/content/docs/reference/algorun.md +++ b/docs/src/content/docs/reference/nodekit.md @@ -1,6 +1,6 @@ --- -title: "algorun" -slug: "reference/algorun" +title: "nodekit" +slug: "reference/nodekit" --- ## Synopsis @@ -8,32 +8,32 @@ slug: "reference/algorun" Manage Algorand nodes from the command line Overview: -Welcome to Algorun, a TUI for managing Algorand nodes. +Welcome to NodeKit, a TUI for managing Algorand nodes. A one stop shop for managing Algorand nodes, including node creation, configuration, and management. Note: This is still a work in progress. Expect bugs and rough edges. ``` -algorun [flags] +nodekit [flags] ``` ### Options ``` -d, --datadir string Data directory for the node - -h, --help help for algorun + -h, --help help for nodekit ``` ### SEE ALSO -* [algorun bootstrap](/reference/algorun/bootstrap) - Initialize a fresh node -* [algorun catchup](/reference/algorun/catchup) - Manage Fast-Catchup for your node -* [algorun configure](/reference/algorun/configure) - Change settings on the system (WIP) -* [algorun debug](/reference/algorun/debug) - Display debugging information -* [algorun install](/reference/algorun/install) - Install the node daemon -* [algorun start](/reference/algorun/start) - Start the node daemon -* [algorun stop](/reference/algorun/stop) - Stop the node daemon -* [algorun uninstall](/reference/algorun/uninstall) - Uninstall the node daemon -* [algorun upgrade](/reference/algorun/upgrade) - Upgrade the node daemon +* [nodekit bootstrap](/reference/nodekit/bootstrap) - Initialize a fresh node +* [nodekit catchup](/reference/nodekit/catchup) - Manage Fast-Catchup for your node +* [nodekit configure](/reference/nodekit/configure) - Change settings on the system (WIP) +* [nodekit debug](/reference/nodekit/debug) - Display debugging information +* [nodekit install](/reference/nodekit/install) - Install the node daemon +* [nodekit start](/reference/nodekit/start) - Start the node daemon +* [nodekit stop](/reference/nodekit/stop) - Stop the node daemon +* [nodekit uninstall](/reference/nodekit/uninstall) - Uninstall the node daemon +* [nodekit upgrade](/reference/nodekit/upgrade) - Upgrade the node daemon -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/docs/src/content/docs/reference/algorun_bootstrap.md b/docs/src/content/docs/reference/nodekit_bootstrap.md similarity index 84% rename from docs/src/content/docs/reference/algorun_bootstrap.md rename to docs/src/content/docs/reference/nodekit_bootstrap.md index 7c7925b7..727f9cd2 100644 --- a/docs/src/content/docs/reference/algorun_bootstrap.md +++ b/docs/src/content/docs/reference/nodekit_bootstrap.md @@ -1,6 +1,6 @@ --- -title: "algorun bootstrap" -slug: "reference/algorun/bootstrap" +title: "nodekit bootstrap" +slug: "reference/nodekit/bootstrap" --- ## Synopsis @@ -14,7 +14,7 @@ Uses the local package manager to install Algorand, and then starts the node and Note: This command only supports the default data directory, /var/lib/algorand ``` -algorun bootstrap [flags] +nodekit bootstrap [flags] ``` ### Options @@ -25,6 +25,6 @@ algorun bootstrap [flags] ### SEE ALSO -* [algorun](/reference/algorun) - Manage Algorand nodes from the command line +* [nodekit](/reference/nodekit) - Manage Algorand nodes from the command line -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/docs/src/content/docs/reference/algorun_catchup.md b/docs/src/content/docs/reference/nodekit_catchup.md similarity index 75% rename from docs/src/content/docs/reference/algorun_catchup.md rename to docs/src/content/docs/reference/nodekit_catchup.md index cb514fda..5679e76d 100644 --- a/docs/src/content/docs/reference/algorun_catchup.md +++ b/docs/src/content/docs/reference/nodekit_catchup.md @@ -1,6 +1,6 @@ --- -title: "algorun catchup" -slug: "reference/algorun/catchup" +title: "nodekit catchup" +slug: "reference/nodekit/catchup" --- ## Synopsis @@ -14,7 +14,7 @@ Actual sync times may vary depending on the number of accounts, number of blocks Note: Not all networks support Fast-Catchup. ``` -algorun catchup [flags] +nodekit catchup [flags] ``` ### Options @@ -26,9 +26,9 @@ algorun catchup [flags] ### SEE ALSO -* [algorun](/reference/algorun) - Manage Algorand nodes from the command line -* [algorun catchup debug](/reference/algorun/catchup/debug) - Display debug information for Fast-Catchup. -* [algorun catchup start](/reference/algorun/catchup/start) - Get the latest catchpoint and start catching up. -* [algorun catchup stop](/reference/algorun/catchup/stop) - Stop a fast catchup +* [nodekit](/reference/nodekit) - Manage Algorand nodes from the command line +* [nodekit catchup debug](/reference/nodekit/catchup/debug) - Display debug information for Fast-Catchup. +* [nodekit catchup start](/reference/nodekit/catchup/start) - Get the latest catchpoint and start catching up. +* [nodekit catchup stop](/reference/nodekit/catchup/stop) - Stop a fast catchup -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/docs/src/content/docs/reference/algorun_catchup_debug.md b/docs/src/content/docs/reference/nodekit_catchup_debug.md similarity index 75% rename from docs/src/content/docs/reference/algorun_catchup_debug.md rename to docs/src/content/docs/reference/nodekit_catchup_debug.md index 056a437f..5b459ac6 100644 --- a/docs/src/content/docs/reference/algorun_catchup_debug.md +++ b/docs/src/content/docs/reference/nodekit_catchup_debug.md @@ -1,6 +1,6 @@ --- -title: "algorun catchup debug" -slug: "reference/algorun/catchup/debug" +title: "nodekit catchup debug" +slug: "reference/nodekit/catchup/debug" --- ## Synopsis @@ -13,7 +13,7 @@ This information is useful for debugging fast-catchup issues. Note: Not all networks support Fast-Catchup. ``` -algorun catchup debug [flags] +nodekit catchup debug [flags] ``` ### Options @@ -25,6 +25,6 @@ algorun catchup debug [flags] ### SEE ALSO -* [algorun catchup](/reference/algorun/catchup) - Manage Fast-Catchup for your node +* [nodekit catchup](/reference/nodekit/catchup) - Manage Fast-Catchup for your node -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/docs/src/content/docs/reference/algorun_catchup_start.md b/docs/src/content/docs/reference/nodekit_catchup_start.md similarity index 83% rename from docs/src/content/docs/reference/algorun_catchup_start.md rename to docs/src/content/docs/reference/nodekit_catchup_start.md index f1111684..01be034d 100644 --- a/docs/src/content/docs/reference/algorun_catchup_start.md +++ b/docs/src/content/docs/reference/nodekit_catchup_start.md @@ -1,6 +1,6 @@ --- -title: "algorun catchup start" -slug: "reference/algorun/catchup/start" +title: "nodekit catchup start" +slug: "reference/nodekit/catchup/start" --- ## Synopsis @@ -14,7 +14,7 @@ Actual sync times may vary depending on the number of accounts, number of blocks Note: Not all networks support Fast-Catchup. ``` -algorun catchup start [flags] +nodekit catchup start [flags] ``` ### Options @@ -26,6 +26,6 @@ algorun catchup start [flags] ### SEE ALSO -* [algorun catchup](/reference/algorun/catchup) - Manage Fast-Catchup for your node +* [nodekit catchup](/reference/nodekit/catchup) - Manage Fast-Catchup for your node -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/docs/src/content/docs/reference/algorun_catchup_stop.md b/docs/src/content/docs/reference/nodekit_catchup_stop.md similarity index 80% rename from docs/src/content/docs/reference/algorun_catchup_stop.md rename to docs/src/content/docs/reference/nodekit_catchup_stop.md index 5537e765..84e9b2b0 100644 --- a/docs/src/content/docs/reference/algorun_catchup_stop.md +++ b/docs/src/content/docs/reference/nodekit_catchup_stop.md @@ -1,6 +1,6 @@ --- -title: "algorun catchup stop" -slug: "reference/algorun/catchup/stop" +title: "nodekit catchup stop" +slug: "reference/nodekit/catchup/stop" --- ## Synopsis @@ -13,7 +13,7 @@ Stop an active Fast-Catchup. This will abort the catchup process if one has star Note: Not all networks support Fast-Catchup. ``` -algorun catchup stop [flags] +nodekit catchup stop [flags] ``` ### Options @@ -25,6 +25,6 @@ algorun catchup stop [flags] ### SEE ALSO -* [algorun catchup](/reference/algorun/catchup) - Manage Fast-Catchup for your node +* [nodekit catchup](/reference/nodekit/catchup) - Manage Fast-Catchup for your node -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/docs/src/content/docs/reference/algorun_configure.md b/docs/src/content/docs/reference/nodekit_configure.md similarity index 78% rename from docs/src/content/docs/reference/algorun_configure.md rename to docs/src/content/docs/reference/nodekit_configure.md index ac01e42e..ddba61e0 100644 --- a/docs/src/content/docs/reference/algorun_configure.md +++ b/docs/src/content/docs/reference/nodekit_configure.md @@ -1,6 +1,6 @@ --- -title: "algorun configure" -slug: "reference/algorun/configure" +title: "nodekit configure" +slug: "reference/nodekit/configure" --- ## Synopsis @@ -20,7 +20,7 @@ Note: This is still a work in progress. Expect bugs and rough edges. ### SEE ALSO -* [algorun](/reference/algorun) - Manage Algorand nodes from the command line -* [algorun configure service](/reference/algorun/configure/service) - Install service files for the Algorand daemon. +* [nodekit](/reference/nodekit) - Manage Algorand nodes from the command line +* [nodekit configure service](/reference/nodekit/configure/service) - Install service files for the Algorand daemon. -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/docs/src/content/docs/reference/algorun_configure_service.md b/docs/src/content/docs/reference/nodekit_configure_service.md similarity index 76% rename from docs/src/content/docs/reference/algorun_configure_service.md rename to docs/src/content/docs/reference/nodekit_configure_service.md index 2c5732dd..1a381651 100644 --- a/docs/src/content/docs/reference/algorun_configure_service.md +++ b/docs/src/content/docs/reference/nodekit_configure_service.md @@ -1,6 +1,6 @@ --- -title: "algorun configure service" -slug: "reference/algorun/configure/service" +title: "nodekit configure service" +slug: "reference/nodekit/configure/service" --- ## Synopsis @@ -13,7 +13,7 @@ Ensuring that the Algorand daemon is installed and running as a service. Note: This is still a work in progress. Expect bugs and rough edges. ``` -algorun configure service [flags] +nodekit configure service [flags] ``` ### Options @@ -24,6 +24,6 @@ algorun configure service [flags] ### SEE ALSO -* [algorun configure](/reference/algorun/configure) - Change settings on the system (WIP) +* [nodekit configure](/reference/nodekit/configure) - Change settings on the system (WIP) -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/docs/src/content/docs/reference/algorun_debug.md b/docs/src/content/docs/reference/nodekit_debug.md similarity index 82% rename from docs/src/content/docs/reference/algorun_debug.md rename to docs/src/content/docs/reference/nodekit_debug.md index 2a2721fe..74bd2352 100644 --- a/docs/src/content/docs/reference/algorun_debug.md +++ b/docs/src/content/docs/reference/nodekit_debug.md @@ -1,6 +1,6 @@ --- -title: "algorun debug" -slug: "reference/algorun/debug" +title: "nodekit debug" +slug: "reference/nodekit/debug" --- ## Synopsis @@ -13,7 +13,7 @@ Checks various paths and configurations to present useful information for bug re ``` -algorun debug [flags] +nodekit debug [flags] ``` ### Options @@ -25,6 +25,6 @@ algorun debug [flags] ### SEE ALSO -* [algorun](/reference/algorun) - Manage Algorand nodes from the command line +* [nodekit](/reference/nodekit) - Manage Algorand nodes from the command line -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/docs/src/content/docs/reference/algorun_install.md b/docs/src/content/docs/reference/nodekit_install.md similarity index 80% rename from docs/src/content/docs/reference/algorun_install.md rename to docs/src/content/docs/reference/nodekit_install.md index 3d33fb53..e9c36d02 100644 --- a/docs/src/content/docs/reference/algorun_install.md +++ b/docs/src/content/docs/reference/nodekit_install.md @@ -1,6 +1,6 @@ --- -title: "algorun install" -slug: "reference/algorun/install" +title: "nodekit install" +slug: "reference/nodekit/install" --- ## Synopsis @@ -12,7 +12,7 @@ Configures the local package manager and installs the algorand daemon on your lo ``` -algorun install [flags] +nodekit install [flags] ``` ### Options @@ -24,6 +24,6 @@ algorun install [flags] ### SEE ALSO -* [algorun](/reference/algorun) - Manage Algorand nodes from the command line +* [nodekit](/reference/nodekit) - Manage Algorand nodes from the command line -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/docs/src/content/docs/reference/algorun_start.md b/docs/src/content/docs/reference/nodekit_start.md similarity index 86% rename from docs/src/content/docs/reference/algorun_start.md rename to docs/src/content/docs/reference/nodekit_start.md index b3d14b8c..026e41ed 100644 --- a/docs/src/content/docs/reference/algorun_start.md +++ b/docs/src/content/docs/reference/nodekit_start.md @@ -1,6 +1,6 @@ --- -title: "algorun start" -slug: "reference/algorun/start" +title: "nodekit start" +slug: "reference/nodekit/start" --- ## Synopsis @@ -13,7 +13,7 @@ Start the Algorand daemon on your local machine if it is not already running. Op This requires the daemon to be installed on your system. ``` -algorun start [flags] +nodekit start [flags] ``` ### Options @@ -25,6 +25,6 @@ algorun start [flags] ### SEE ALSO -* [algorun](/reference/algorun) - Manage Algorand nodes from the command line +* [nodekit](/reference/nodekit) - Manage Algorand nodes from the command line -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/docs/src/content/docs/reference/algorun_stop.md b/docs/src/content/docs/reference/nodekit_stop.md similarity index 83% rename from docs/src/content/docs/reference/algorun_stop.md rename to docs/src/content/docs/reference/nodekit_stop.md index 54cde191..6d1e87ce 100644 --- a/docs/src/content/docs/reference/algorun_stop.md +++ b/docs/src/content/docs/reference/nodekit_stop.md @@ -1,6 +1,6 @@ --- -title: "algorun stop" -slug: "reference/algorun/stop" +title: "nodekit stop" +slug: "reference/nodekit/stop" --- ## Synopsis @@ -13,7 +13,7 @@ Stops the Algorand daemon on your local machine. Optionally, the daemon can be f This requires the daemon to be installed on your system. ``` -algorun stop [flags] +nodekit stop [flags] ``` ### Options @@ -25,6 +25,6 @@ algorun stop [flags] ### SEE ALSO -* [algorun](/reference/algorun) - Manage Algorand nodes from the command line +* [nodekit](/reference/nodekit) - Manage Algorand nodes from the command line -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/docs/src/content/docs/reference/algorun_uninstall.md b/docs/src/content/docs/reference/nodekit_uninstall.md similarity index 81% rename from docs/src/content/docs/reference/algorun_uninstall.md rename to docs/src/content/docs/reference/nodekit_uninstall.md index 3150c276..5a258690 100644 --- a/docs/src/content/docs/reference/algorun_uninstall.md +++ b/docs/src/content/docs/reference/nodekit_uninstall.md @@ -1,6 +1,6 @@ --- -title: "algorun uninstall" -slug: "reference/algorun/uninstall" +title: "nodekit uninstall" +slug: "reference/nodekit/uninstall" --- ## Synopsis @@ -13,7 +13,7 @@ Uninstall Algorand node (Algod) and other binaries on your system installed by t This requires the daemon to be installed on your system. ``` -algorun uninstall [flags] +nodekit uninstall [flags] ``` ### Options @@ -25,6 +25,6 @@ algorun uninstall [flags] ### SEE ALSO -* [algorun](/reference/algorun) - Manage Algorand nodes from the command line +* [nodekit](/reference/nodekit) - Manage Algorand nodes from the command line -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/docs/src/content/docs/reference/algorun_upgrade.md b/docs/src/content/docs/reference/nodekit_upgrade.md similarity index 77% rename from docs/src/content/docs/reference/algorun_upgrade.md rename to docs/src/content/docs/reference/nodekit_upgrade.md index 13d60042..cb60c400 100644 --- a/docs/src/content/docs/reference/algorun_upgrade.md +++ b/docs/src/content/docs/reference/nodekit_upgrade.md @@ -1,6 +1,6 @@ --- -title: "algorun upgrade" -slug: "reference/algorun/upgrade" +title: "nodekit upgrade" +slug: "reference/nodekit/upgrade" --- ## Synopsis @@ -13,7 +13,7 @@ Upgrade Algorand packages if it was installed with package manager. This requires the daemon to be installed on your system. ``` -algorun upgrade [flags] +nodekit upgrade [flags] ``` ### Options @@ -24,6 +24,6 @@ algorun upgrade [flags] ### SEE ALSO -* [algorun](/reference/algorun) - Manage Algorand nodes from the command line +* [nodekit](/reference/nodekit) - Manage Algorand nodes from the command line -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/go.mod b/go.mod index ff9a8dd1..34d164b1 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/algorandfoundation/algorun-tui +module github.com/algorandfoundation/nodekit go 1.22.0 diff --git a/install.sh b/install.sh index 9e7794ac..46aa2655 100755 --- a/install.sh +++ b/install.sh @@ -12,7 +12,7 @@ BANNER=' _____ .__ __________ \/ /_____/ \/ \/ ' os=$(uname -ms) -release="https://github.com/algorandfoundation/algorun-tui/releases/download" +release="https://github.com/algorandfoundation/nodekit/releases/download" version="v1.0.0-beta.2" Red='' @@ -53,8 +53,8 @@ error() { exit 1 } -if [ -f algorun ]; then - error "An algorun file already exists in the current directory. Delete or rename it before installing." +if [ -f nodekit ]; then + error "An nodekit file already exists in the current directory. Delete or rename it before installing." fi @@ -67,28 +67,28 @@ trap "info Exiting the installation" exit case $os in 'Darwin x86_64') - target=algorun-amd64-darwin + target=nodekit-amd64-darwin ;; 'Darwin arm64') - target=algorun-arm64-darwin + target=nodekit-arm64-darwin ;; 'Linux aarch64' | 'Linux arm64') - target=algorun-arm64-linux + target=nodekit-arm64-linux ;; 'Linux x86_64' | *) - target=algorun-amd64-linux + target=nodekit-amd64-linux ;; esac echo -e "${Opaque}Downloading:${Reset}${Bold_White} $target $version${Reset}" -curl --fail --location --progress-bar --output algorun "$release/$version/$target" || +curl --fail --location --progress-bar --output nodekit "$release/$version/$target" || error "Failed to download ${target} from ${release}" -chmod +x algorun +chmod +x nodekit trap - int trap - exit -success "Downloaded: ${Bold_Green}algorun ${version} 🎉${Reset}" +success "Downloaded: ${Bold_Green}nodekit ${version} 🎉${Reset}" info "Get started by running:" -echo "./algorun --help" +echo "./nodekit --help" diff --git a/internal/algod/accounts.go b/internal/algod/accounts.go index 6f58cdc3..36d30519 100644 --- a/internal/algod/accounts.go +++ b/internal/algod/accounts.go @@ -4,13 +4,13 @@ import ( "context" "errors" "fmt" - "github.com/algorandfoundation/algorun-tui/internal/algod/participation" - "github.com/algorandfoundation/algorun-tui/internal/algod/utils" - "github.com/algorandfoundation/algorun-tui/internal/system" + "github.com/algorandfoundation/nodekit/internal/algod/participation" + "github.com/algorandfoundation/nodekit/internal/algod/utils" + "github.com/algorandfoundation/nodekit/internal/system" "time" "github.com/algorand/go-algorand-sdk/v2/types" - "github.com/algorandfoundation/algorun-tui/api" + "github.com/algorandfoundation/nodekit/api" ) // Account represents a user's account, including address, status, balance, and number of keys. diff --git a/internal/algod/accounts_test.go b/internal/algod/accounts_test.go index bee34999..8da725c7 100644 --- a/internal/algod/accounts_test.go +++ b/internal/algod/accounts_test.go @@ -2,9 +2,9 @@ package algod import ( "context" - "github.com/algorandfoundation/algorun-tui/api" - "github.com/algorandfoundation/algorun-tui/internal/test" - "github.com/algorandfoundation/algorun-tui/internal/test/mock" + "github.com/algorandfoundation/nodekit/api" + "github.com/algorandfoundation/nodekit/internal/test" + "github.com/algorandfoundation/nodekit/internal/test/mock" "github.com/oapi-codegen/oapi-codegen/v2/pkg/securityprovider" "github.com/stretchr/testify/assert" "testing" diff --git a/internal/algod/algod.go b/internal/algod/algod.go index f6a9edae..aed0ad5a 100644 --- a/internal/algod/algod.go +++ b/internal/algod/algod.go @@ -2,9 +2,9 @@ package algod import ( "fmt" - "github.com/algorandfoundation/algorun-tui/internal/algod/linux" - "github.com/algorandfoundation/algorun-tui/internal/algod/mac" - "github.com/algorandfoundation/algorun-tui/internal/system" + "github.com/algorandfoundation/nodekit/internal/algod/linux" + "github.com/algorandfoundation/nodekit/internal/algod/mac" + "github.com/algorandfoundation/nodekit/internal/system" "runtime" ) diff --git a/internal/algod/block.go b/internal/algod/block.go index a1d41ee5..5829ee66 100644 --- a/internal/algod/block.go +++ b/internal/algod/block.go @@ -3,7 +3,7 @@ package algod import ( "context" "errors" - "github.com/algorandfoundation/algorun-tui/api" + "github.com/algorandfoundation/nodekit/api" "time" ) diff --git a/internal/algod/block_test.go b/internal/algod/block_test.go index 4eb8cb68..5d33fa69 100644 --- a/internal/algod/block_test.go +++ b/internal/algod/block_test.go @@ -2,7 +2,7 @@ package algod import ( "context" - "github.com/algorandfoundation/algorun-tui/api" + "github.com/algorandfoundation/nodekit/api" "testing" "time" ) diff --git a/internal/algod/catchpoint.go b/internal/algod/catchpoint.go index 00c970c9..85540431 100644 --- a/internal/algod/catchpoint.go +++ b/internal/algod/catchpoint.go @@ -3,7 +3,7 @@ package algod import ( "context" "errors" - "github.com/algorandfoundation/algorun-tui/api" + "github.com/algorandfoundation/nodekit/api" ) // StartCatchup sends a request to start a catchup operation on a specific catchpoint and returns the catchup message. diff --git a/internal/algod/client.go b/internal/algod/client.go index 828f11d2..aea44b78 100644 --- a/internal/algod/client.go +++ b/internal/algod/client.go @@ -2,8 +2,8 @@ package algod import ( "errors" - "github.com/algorandfoundation/algorun-tui/api" - "github.com/algorandfoundation/algorun-tui/internal/algod/utils" + "github.com/algorandfoundation/nodekit/api" + "github.com/algorandfoundation/nodekit/internal/algod/utils" "github.com/oapi-codegen/oapi-codegen/v2/pkg/securityprovider" "os" "path/filepath" diff --git a/internal/algod/fallback/algod.go b/internal/algod/fallback/algod.go index 3bba1424..7cb86adc 100644 --- a/internal/algod/fallback/algod.go +++ b/internal/algod/fallback/algod.go @@ -3,9 +3,9 @@ package fallback import ( "errors" "fmt" - "github.com/algorandfoundation/algorun-tui/internal/algod/msgs" - "github.com/algorandfoundation/algorun-tui/internal/algod/utils" - "github.com/algorandfoundation/algorun-tui/internal/system" + "github.com/algorandfoundation/nodekit/internal/algod/msgs" + "github.com/algorandfoundation/nodekit/internal/algod/utils" + "github.com/algorandfoundation/nodekit/internal/system" "github.com/charmbracelet/log" "os" "os/exec" diff --git a/internal/algod/linux/linux.go b/internal/algod/linux/linux.go index a03ee999..ec96c154 100644 --- a/internal/algod/linux/linux.go +++ b/internal/algod/linux/linux.go @@ -3,8 +3,8 @@ package linux import ( "bytes" "fmt" - "github.com/algorandfoundation/algorun-tui/internal/algod/fallback" - "github.com/algorandfoundation/algorun-tui/internal/system" + "github.com/algorandfoundation/nodekit/internal/algod/fallback" + "github.com/algorandfoundation/nodekit/internal/system" "github.com/charmbracelet/log" "os" "os/exec" diff --git a/internal/algod/mac/mac.go b/internal/algod/mac/mac.go index e83bae97..3286ca15 100644 --- a/internal/algod/mac/mac.go +++ b/internal/algod/mac/mac.go @@ -4,8 +4,8 @@ import ( "bytes" "errors" "fmt" - "github.com/algorandfoundation/algorun-tui/internal/algod/utils" - "github.com/algorandfoundation/algorun-tui/internal/system" + "github.com/algorandfoundation/nodekit/internal/algod/utils" + "github.com/algorandfoundation/nodekit/internal/system" "github.com/charmbracelet/log" "github.com/spf13/cobra" "io" diff --git a/internal/algod/metrics.go b/internal/algod/metrics.go index 799ad62c..7a01fcac 100644 --- a/internal/algod/metrics.go +++ b/internal/algod/metrics.go @@ -3,7 +3,7 @@ package algod import ( "context" "errors" - "github.com/algorandfoundation/algorun-tui/api" + "github.com/algorandfoundation/nodekit/api" "regexp" "strconv" "strings" diff --git a/internal/algod/metrics_test.go b/internal/algod/metrics_test.go index da9ea5f5..0b894fd1 100644 --- a/internal/algod/metrics_test.go +++ b/internal/algod/metrics_test.go @@ -2,8 +2,8 @@ package algod import ( "context" - "github.com/algorandfoundation/algorun-tui/api" - "github.com/algorandfoundation/algorun-tui/internal/test" + "github.com/algorandfoundation/nodekit/api" + "github.com/algorandfoundation/nodekit/internal/test" "strconv" "testing" ) diff --git a/internal/algod/participation/participation.go b/internal/algod/participation/participation.go index bf55cc4b..00a20938 100644 --- a/internal/algod/participation/participation.go +++ b/internal/algod/participation/participation.go @@ -8,7 +8,7 @@ import ( "fmt" "time" - "github.com/algorandfoundation/algorun-tui/api" + "github.com/algorandfoundation/nodekit/api" ) // RangeType represents a type of range, such as time-based or round-based, used in participation key generation. diff --git a/internal/algod/participation/participation_test.go b/internal/algod/participation/participation_test.go index 79ba5914..24daf174 100644 --- a/internal/algod/participation/participation_test.go +++ b/internal/algod/participation/participation_test.go @@ -4,8 +4,8 @@ import ( "bytes" "context" "fmt" - "github.com/algorandfoundation/algorun-tui/api" - "github.com/algorandfoundation/algorun-tui/internal/test" + "github.com/algorandfoundation/nodekit/api" + "github.com/algorandfoundation/nodekit/internal/test" "io" "net/http" "testing" diff --git a/internal/algod/state.go b/internal/algod/state.go index 6111577c..ac4bc8c9 100644 --- a/internal/algod/state.go +++ b/internal/algod/state.go @@ -2,11 +2,11 @@ package algod import ( "context" - "github.com/algorandfoundation/algorun-tui/internal/algod/participation" - "github.com/algorandfoundation/algorun-tui/internal/system" + "github.com/algorandfoundation/nodekit/internal/algod/participation" + "github.com/algorandfoundation/nodekit/internal/system" "time" - "github.com/algorandfoundation/algorun-tui/api" + "github.com/algorandfoundation/nodekit/api" ) // StateModel represents the state of the application, diff --git a/internal/algod/state_test.go b/internal/algod/state_test.go index 64d94ea6..e8118d1c 100644 --- a/internal/algod/state_test.go +++ b/internal/algod/state_test.go @@ -2,8 +2,8 @@ package algod import ( "context" - "github.com/algorandfoundation/algorun-tui/api" - "github.com/algorandfoundation/algorun-tui/internal/test/mock" + "github.com/algorandfoundation/nodekit/api" + "github.com/algorandfoundation/nodekit/internal/test/mock" "github.com/oapi-codegen/oapi-codegen/v2/pkg/securityprovider" "testing" "time" diff --git a/internal/algod/status.go b/internal/algod/status.go index 1f77103b..0269f9a0 100644 --- a/internal/algod/status.go +++ b/internal/algod/status.go @@ -4,7 +4,7 @@ import ( "context" "errors" - "github.com/algorandfoundation/algorun-tui/api" + "github.com/algorandfoundation/nodekit/api" ) // InvalidStatus indicates an error when a response contains an invalid or unexpected status code. diff --git a/internal/algod/status_test.go b/internal/algod/status_test.go index 57d76688..81d4e779 100644 --- a/internal/algod/status_test.go +++ b/internal/algod/status_test.go @@ -2,8 +2,8 @@ package algod import ( "context" - "github.com/algorandfoundation/algorun-tui/api" - "github.com/algorandfoundation/algorun-tui/internal/test" + "github.com/algorandfoundation/nodekit/api" + "github.com/algorandfoundation/nodekit/internal/test" "testing" ) diff --git a/internal/algod/utils/utils.go b/internal/algod/utils/utils.go index f64433d2..18e8955f 100644 --- a/internal/algod/utils/utils.go +++ b/internal/algod/utils/utils.go @@ -3,7 +3,7 @@ package utils import ( "encoding/json" "fmt" - "github.com/algorandfoundation/algorun-tui/internal/system" + "github.com/algorandfoundation/nodekit/internal/system" "github.com/spf13/cobra" "os" "path/filepath" diff --git a/internal/algod/version.go b/internal/algod/version.go index acd0a7d8..846b792a 100644 --- a/internal/algod/version.go +++ b/internal/algod/version.go @@ -4,7 +4,7 @@ import ( "context" "errors" "fmt" - "github.com/algorandfoundation/algorun-tui/api" + "github.com/algorandfoundation/nodekit/api" ) // VersionResponse represents information about the system version, including network, version, and channel details. diff --git a/internal/system/cmds.go b/internal/system/cmds.go index 160d09a0..e021cadd 100644 --- a/internal/system/cmds.go +++ b/internal/system/cmds.go @@ -2,7 +2,7 @@ package system import ( "fmt" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/ui/style" "github.com/charmbracelet/log" "os" "os/exec" diff --git a/internal/test/client.go b/internal/test/client.go index 10039ce0..14161006 100644 --- a/internal/test/client.go +++ b/internal/test/client.go @@ -3,8 +3,8 @@ package test import ( "context" "errors" - "github.com/algorandfoundation/algorun-tui/api" - "github.com/algorandfoundation/algorun-tui/internal/test/mock" + "github.com/algorandfoundation/nodekit/api" + "github.com/algorandfoundation/nodekit/internal/test/mock" "net/http" ) diff --git a/internal/test/mock/fixtures.go b/internal/test/mock/fixtures.go index b3f91de8..59293229 100644 --- a/internal/test/mock/fixtures.go +++ b/internal/test/mock/fixtures.go @@ -1,7 +1,7 @@ package mock import ( - "github.com/algorandfoundation/algorun-tui/api" + "github.com/algorandfoundation/nodekit/api" ) var VoteKey = []byte("TESTKEY") diff --git a/internal/test/utils.go b/internal/test/utils.go index 5827d746..af8a336b 100644 --- a/internal/test/utils.go +++ b/internal/test/utils.go @@ -5,7 +5,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/algorandfoundation/algorun-tui/api" + "github.com/algorandfoundation/nodekit/api" "io" ) diff --git a/main.go b/main.go index f4086bfd..a1ab5450 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/algorandfoundation/algorun-tui/cmd" + "github.com/algorandfoundation/nodekit/cmd" "github.com/charmbracelet/log" "os" "runtime" diff --git a/man/algorun_bootstrap.md b/man/nodekit_bootstrap.md similarity index 88% rename from man/algorun_bootstrap.md rename to man/nodekit_bootstrap.md index 70b458a6..111cb2ea 100644 --- a/man/algorun_bootstrap.md +++ b/man/nodekit_bootstrap.md @@ -1,4 +1,4 @@ -## algorun bootstrap +## nodekit bootstrap Initialize a fresh node @@ -17,7 +17,7 @@ Uses the local package manager to install Algorand, and then starts the node and Note: This command only supports the default data directory, /var/lib/algorand ``` -algorun bootstrap [flags] +nodekit bootstrap [flags] ``` ### Options @@ -28,6 +28,6 @@ algorun bootstrap [flags] ### SEE ALSO -* [algorun](/README.md) - Manage Algorand nodes from the command line +* [nodekit](/README.md) - Manage Algorand nodes from the command line -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/man/algorun_catchup.md b/man/nodekit_catchup.md similarity index 79% rename from man/algorun_catchup.md rename to man/nodekit_catchup.md index 26c15ebb..c35387b9 100644 --- a/man/algorun_catchup.md +++ b/man/nodekit_catchup.md @@ -1,4 +1,4 @@ -## algorun catchup +## nodekit catchup Manage Fast-Catchup for your node @@ -17,7 +17,7 @@ Actual sync times may vary depending on the number of accounts, number of blocks Note: Not all networks support Fast-Catchup. ``` -algorun catchup [flags] +nodekit catchup [flags] ``` ### Options @@ -29,9 +29,9 @@ algorun catchup [flags] ### SEE ALSO -* [algorun](/README.md) - Manage Algorand nodes from the command line -* [algorun catchup debug](/man/algorun_catchup_debug.md) - Display debug information for Fast-Catchup. -* [algorun catchup start](/man/algorun_catchup_start.md) - Get the latest catchpoint and start catching up. -* [algorun catchup stop](/man/algorun_catchup_stop.md) - Stop a fast catchup +* [nodekit](/README.md) - Manage Algorand nodes from the command line +* [nodekit catchup debug](/man/nodekit_catchup_debug.md) - Display debug information for Fast-Catchup. +* [nodekit catchup start](/man/nodekit_catchup_start.md) - Get the latest catchpoint and start catching up. +* [nodekit catchup stop](/man/nodekit_catchup_stop.md) - Stop a fast catchup -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/man/algorun_catchup_debug.md b/man/nodekit_catchup_debug.md similarity index 83% rename from man/algorun_catchup_debug.md rename to man/nodekit_catchup_debug.md index 31e359d2..b66d6dc3 100644 --- a/man/algorun_catchup_debug.md +++ b/man/nodekit_catchup_debug.md @@ -1,4 +1,4 @@ -## algorun catchup debug +## nodekit catchup debug Display debug information for Fast-Catchup. @@ -16,7 +16,7 @@ This information is useful for debugging fast-catchup issues. Note: Not all networks support Fast-Catchup. ``` -algorun catchup debug [flags] +nodekit catchup debug [flags] ``` ### Options @@ -28,6 +28,6 @@ algorun catchup debug [flags] ### SEE ALSO -* [algorun catchup](/man/algorun_catchup.md) - Manage Fast-Catchup for your node +* [nodekit catchup](/man/nodekit_catchup.md) - Manage Fast-Catchup for your node -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/man/algorun_catchup_start.md b/man/nodekit_catchup_start.md similarity index 88% rename from man/algorun_catchup_start.md rename to man/nodekit_catchup_start.md index 3560b724..92306447 100644 --- a/man/algorun_catchup_start.md +++ b/man/nodekit_catchup_start.md @@ -1,4 +1,4 @@ -## algorun catchup start +## nodekit catchup start Get the latest catchpoint and start catching up. @@ -17,7 +17,7 @@ Actual sync times may vary depending on the number of accounts, number of blocks Note: Not all networks support Fast-Catchup. ``` -algorun catchup start [flags] +nodekit catchup start [flags] ``` ### Options @@ -29,6 +29,6 @@ algorun catchup start [flags] ### SEE ALSO -* [algorun catchup](/man/algorun_catchup.md) - Manage Fast-Catchup for your node +* [nodekit catchup](/man/nodekit_catchup.md) - Manage Fast-Catchup for your node -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/man/algorun_catchup_stop.md b/man/nodekit_catchup_stop.md similarity index 86% rename from man/algorun_catchup_stop.md rename to man/nodekit_catchup_stop.md index 50a502c2..249da1d0 100644 --- a/man/algorun_catchup_stop.md +++ b/man/nodekit_catchup_stop.md @@ -1,4 +1,4 @@ -## algorun catchup stop +## nodekit catchup stop Stop a fast catchup @@ -16,7 +16,7 @@ Stop an active Fast-Catchup. This will abort the catchup process if one has star Note: Not all networks support Fast-Catchup. ``` -algorun catchup stop [flags] +nodekit catchup stop [flags] ``` ### Options @@ -28,6 +28,6 @@ algorun catchup stop [flags] ### SEE ALSO -* [algorun catchup](/man/algorun_catchup.md) - Manage Fast-Catchup for your node +* [nodekit catchup](/man/nodekit_catchup.md) - Manage Fast-Catchup for your node -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/man/algorun_configure.md b/man/nodekit_configure.md similarity index 83% rename from man/algorun_configure.md rename to man/nodekit_configure.md index 39fc019a..6782d6f0 100644 --- a/man/algorun_configure.md +++ b/man/nodekit_configure.md @@ -1,4 +1,4 @@ -## algorun configure +## nodekit configure Change settings on the system (WIP) @@ -23,7 +23,7 @@ Note: This is still a work in progress. Expect bugs and rough edges. ### SEE ALSO -* [algorun](/README.md) - Manage Algorand nodes from the command line -* [algorun configure service](/man/algorun_configure_service.md) - Install service files for the Algorand daemon. +* [nodekit](/README.md) - Manage Algorand nodes from the command line +* [nodekit configure service](/man/nodekit_configure_service.md) - Install service files for the Algorand daemon. -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/man/algorun_configure_service.md b/man/nodekit_configure_service.md similarity index 83% rename from man/algorun_configure_service.md rename to man/nodekit_configure_service.md index 4f9af8f4..d2f555ab 100644 --- a/man/algorun_configure_service.md +++ b/man/nodekit_configure_service.md @@ -1,4 +1,4 @@ -## algorun configure service +## nodekit configure service Install service files for the Algorand daemon. @@ -16,7 +16,7 @@ Ensuring that the Algorand daemon is installed and running as a service. Note: This is still a work in progress. Expect bugs and rough edges. ``` -algorun configure service [flags] +nodekit configure service [flags] ``` ### Options @@ -27,6 +27,6 @@ algorun configure service [flags] ### SEE ALSO -* [algorun configure](/man/algorun_configure.md) - Change settings on the system (WIP) +* [nodekit configure](/man/nodekit_configure.md) - Change settings on the system (WIP) -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/man/algorun_debug.md b/man/nodekit_debug.md similarity index 87% rename from man/algorun_debug.md rename to man/nodekit_debug.md index 17420fa9..181b19a9 100644 --- a/man/algorun_debug.md +++ b/man/nodekit_debug.md @@ -1,4 +1,4 @@ -## algorun debug +## nodekit debug Display debugging information @@ -16,7 +16,7 @@ Checks various paths and configurations to present useful information for bug re ``` -algorun debug [flags] +nodekit debug [flags] ``` ### Options @@ -28,6 +28,6 @@ algorun debug [flags] ### SEE ALSO -* [algorun](/README.md) - Manage Algorand nodes from the command line +* [nodekit](/README.md) - Manage Algorand nodes from the command line -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/man/algorun_install.md b/man/nodekit_install.md similarity index 86% rename from man/algorun_install.md rename to man/nodekit_install.md index 290593c4..cbaeff6b 100644 --- a/man/algorun_install.md +++ b/man/nodekit_install.md @@ -1,4 +1,4 @@ -## algorun install +## nodekit install Install the node daemon @@ -15,7 +15,7 @@ Configures the local package manager and installs the algorand daemon on your lo ``` -algorun install [flags] +nodekit install [flags] ``` ### Options @@ -27,6 +27,6 @@ algorun install [flags] ### SEE ALSO -* [algorun](/README.md) - Manage Algorand nodes from the command line +* [nodekit](/README.md) - Manage Algorand nodes from the command line -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/man/algorun_start.md b/man/nodekit_start.md similarity index 90% rename from man/algorun_start.md rename to man/nodekit_start.md index f90ff1e0..9503a83a 100644 --- a/man/algorun_start.md +++ b/man/nodekit_start.md @@ -1,4 +1,4 @@ -## algorun start +## nodekit start Start the node daemon @@ -16,7 +16,7 @@ Start the Algorand daemon on your local machine if it is not already running. Op This requires the daemon to be installed on your system. ``` -algorun start [flags] +nodekit start [flags] ``` ### Options @@ -28,6 +28,6 @@ algorun start [flags] ### SEE ALSO -* [algorun](/README.md) - Manage Algorand nodes from the command line +* [nodekit](/README.md) - Manage Algorand nodes from the command line -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/man/algorun_stop.md b/man/nodekit_stop.md similarity index 88% rename from man/algorun_stop.md rename to man/nodekit_stop.md index 605b7c8f..39dc9efd 100644 --- a/man/algorun_stop.md +++ b/man/nodekit_stop.md @@ -1,4 +1,4 @@ -## algorun stop +## nodekit stop Stop the node daemon @@ -16,7 +16,7 @@ Stops the Algorand daemon on your local machine. Optionally, the daemon can be f This requires the daemon to be installed on your system. ``` -algorun stop [flags] +nodekit stop [flags] ``` ### Options @@ -28,6 +28,6 @@ algorun stop [flags] ### SEE ALSO -* [algorun](/README.md) - Manage Algorand nodes from the command line +* [nodekit](/README.md) - Manage Algorand nodes from the command line -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/man/algorun_uninstall.md b/man/nodekit_uninstall.md similarity index 87% rename from man/algorun_uninstall.md rename to man/nodekit_uninstall.md index 96545cac..89134aa7 100644 --- a/man/algorun_uninstall.md +++ b/man/nodekit_uninstall.md @@ -1,4 +1,4 @@ -## algorun uninstall +## nodekit uninstall Uninstall the node daemon @@ -16,7 +16,7 @@ Uninstall Algorand node (Algod) and other binaries on your system installed by t This requires the daemon to be installed on your system. ``` -algorun uninstall [flags] +nodekit uninstall [flags] ``` ### Options @@ -28,6 +28,6 @@ algorun uninstall [flags] ### SEE ALSO -* [algorun](/README.md) - Manage Algorand nodes from the command line +* [nodekit](/README.md) - Manage Algorand nodes from the command line -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/man/algorun_upgrade.md b/man/nodekit_upgrade.md similarity index 83% rename from man/algorun_upgrade.md rename to man/nodekit_upgrade.md index faff25c5..1de31a52 100644 --- a/man/algorun_upgrade.md +++ b/man/nodekit_upgrade.md @@ -1,4 +1,4 @@ -## algorun upgrade +## nodekit upgrade Upgrade the node daemon @@ -16,7 +16,7 @@ Upgrade Algorand packages if it was installed with package manager. This requires the daemon to be installed on your system. ``` -algorun upgrade [flags] +nodekit upgrade [flags] ``` ### Options @@ -27,6 +27,6 @@ algorun upgrade [flags] ### SEE ALSO -* [algorun](/README.md) - Manage Algorand nodes from the command line +* [nodekit](/README.md) - Manage Algorand nodes from the command line -###### Auto generated by spf13/cobra on 6-Jan-2025 +###### Auto generated by spf13/cobra on 7-Jan-2025 diff --git a/playbook.yaml b/playbook.yaml index e5a1d6f2..1cf0743a 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -1,22 +1,22 @@ - name: Test Instance hosts: localhost tasks: - - name: Ensure algorun exists + - name: Ensure nodekit exists stat: - path: /usr/bin/algorun + path: /usr/bin/nodekit register: binpath - name: Fail missing binary fail: - msg: "Must have algorun installed!" + msg: "Must have nodekit installed!" when: not binpath.stat.exists - name: Run installer - command: algorun install + command: nodekit install - name: Run stop - command: algorun stop + command: nodekit stop - name: Run upgrade - command: algorun upgrade + command: nodekit upgrade - name: Run stop - command: algorun stop + command: nodekit stop - name: Run Start - command: algorun start + command: nodekit start # TODO: start a private network, fund TUI account and run TUI integration \ No newline at end of file diff --git a/scripts/documentation.go b/scripts/documentation.go index 04864c39..2b4121df 100644 --- a/scripts/documentation.go +++ b/scripts/documentation.go @@ -2,8 +2,8 @@ package main import ( "fmt" - "github.com/algorandfoundation/algorun-tui/cmd" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/cmd" + "github.com/algorandfoundation/nodekit/ui/style" "github.com/charmbracelet/x/ansi" "github.com/spf13/cobra/doc" "io" @@ -153,7 +153,7 @@ func updateBanners(dirPath string, starlight bool) error { func updateStarlightHeadings(filePath string) error { textBanner := ansi.Strip(style.BANNER) textSplit := strings.Split(textBanner, "\n") - return replaceBetweenStrings(filePath, "## algorun", textSplit[len(textSplit)-2], "## Synopsis") + return replaceBetweenStrings(filePath, "## nodekit", textSplit[len(textSplit)-2], "## Synopsis") } const fmTemplate = `--- diff --git a/ui/README.md b/ui/README.md index 4d528a8f..9868b500 100644 --- a/ui/README.md +++ b/ui/README.md @@ -15,7 +15,7 @@ Example for `status.go` single file component: ```go package ui -import "github.com/algorandfoundation/algorun-tui/internal" +import "github.com/algorandfoundation/nodekit/internal" type StatusViewModel struct { Data internal.StateModel @@ -35,7 +35,7 @@ Example refactor for `status.go` to a package: ```go package status -import "github.com/algorandfoundation/algorun-tui/internal" +import "github.com/algorandfoundation/nodekit/internal" type ViewModel struct { Data internal.StateModel diff --git a/ui/app/accounts.go b/ui/app/accounts.go index 670cb6c6..7b219a4c 100644 --- a/ui/app/accounts.go +++ b/ui/app/accounts.go @@ -1,7 +1,7 @@ package app import ( - "github.com/algorandfoundation/algorun-tui/internal/algod" + "github.com/algorandfoundation/nodekit/internal/algod" tea "github.com/charmbracelet/bubbletea" ) diff --git a/ui/app/app_test.go b/ui/app/app_test.go index 44cf4f3d..f546b43a 100644 --- a/ui/app/app_test.go +++ b/ui/app/app_test.go @@ -2,9 +2,9 @@ package app import ( "context" - "github.com/algorandfoundation/algorun-tui/internal/algod/participation" - "github.com/algorandfoundation/algorun-tui/internal/test" - uitest "github.com/algorandfoundation/algorun-tui/ui/internal/test" + "github.com/algorandfoundation/nodekit/internal/algod/participation" + "github.com/algorandfoundation/nodekit/internal/test" + uitest "github.com/algorandfoundation/nodekit/ui/internal/test" "testing" "time" ) diff --git a/ui/app/keys.go b/ui/app/keys.go index 418794e8..e6658ece 100644 --- a/ui/app/keys.go +++ b/ui/app/keys.go @@ -2,11 +2,11 @@ package app import ( "context" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/internal/algod/participation" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/internal/algod/participation" "time" - "github.com/algorandfoundation/algorun-tui/api" + "github.com/algorandfoundation/nodekit/api" tea "github.com/charmbracelet/bubbletea" ) diff --git a/ui/app/modal.go b/ui/app/modal.go index 92e148fe..4b01b117 100644 --- a/ui/app/modal.go +++ b/ui/app/modal.go @@ -1,7 +1,7 @@ package app import ( - "github.com/algorandfoundation/algorun-tui/api" + "github.com/algorandfoundation/nodekit/api" tea "github.com/charmbracelet/bubbletea" ) diff --git a/ui/app/url.go b/ui/app/url.go index c96e65e3..d2bfab5c 100644 --- a/ui/app/url.go +++ b/ui/app/url.go @@ -2,11 +2,11 @@ package app import ( "encoding/base64" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/internal/algod/participation" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/internal/algod/participation" "strings" - "github.com/algorandfoundation/algorun-tui/api" + "github.com/algorandfoundation/nodekit/api" tea "github.com/charmbracelet/bubbletea" ) diff --git a/ui/bootstrap/model.go b/ui/bootstrap/model.go index 5934c0e9..23ce2a25 100644 --- a/ui/bootstrap/model.go +++ b/ui/bootstrap/model.go @@ -1,7 +1,7 @@ package bootstrap import ( - "github.com/algorandfoundation/algorun-tui/ui/app" + "github.com/algorandfoundation/nodekit/ui/app" "github.com/charmbracelet/bubbles/textinput" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/glamour" diff --git a/ui/internal/test/state.go b/ui/internal/test/state.go index ce52065d..d8471201 100644 --- a/ui/internal/test/state.go +++ b/ui/internal/test/state.go @@ -2,9 +2,9 @@ package test import ( "context" - "github.com/algorandfoundation/algorun-tui/api" - "github.com/algorandfoundation/algorun-tui/internal/algod" - mock2 "github.com/algorandfoundation/algorun-tui/internal/test/mock" + "github.com/algorandfoundation/nodekit/api" + "github.com/algorandfoundation/nodekit/internal/algod" + mock2 "github.com/algorandfoundation/nodekit/internal/test/mock" "time" ) diff --git a/ui/modal/controller.go b/ui/modal/controller.go index b90c9393..86a7dcc3 100644 --- a/ui/modal/controller.go +++ b/ui/modal/controller.go @@ -2,11 +2,11 @@ package modal import ( "fmt" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/internal/algod/participation" - "github.com/algorandfoundation/algorun-tui/ui/app" - "github.com/algorandfoundation/algorun-tui/ui/modals/generate" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/internal/algod/participation" + "github.com/algorandfoundation/nodekit/ui/app" + "github.com/algorandfoundation/nodekit/ui/modals/generate" + "github.com/algorandfoundation/nodekit/ui/style" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" "time" diff --git a/ui/modal/modal_test.go b/ui/modal/modal_test.go index e10adb06..7c43ba2c 100644 --- a/ui/modal/modal_test.go +++ b/ui/modal/modal_test.go @@ -3,10 +3,10 @@ package modal import ( "bytes" "errors" - "github.com/algorandfoundation/algorun-tui/internal/algod/participation" - "github.com/algorandfoundation/algorun-tui/internal/test/mock" - "github.com/algorandfoundation/algorun-tui/ui/app" - "github.com/algorandfoundation/algorun-tui/ui/internal/test" + "github.com/algorandfoundation/nodekit/internal/algod/participation" + "github.com/algorandfoundation/nodekit/internal/test/mock" + "github.com/algorandfoundation/nodekit/ui/app" + "github.com/algorandfoundation/nodekit/ui/internal/test" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" "github.com/charmbracelet/x/ansi" diff --git a/ui/modal/model.go b/ui/modal/model.go index b6ca8518..c0c24385 100644 --- a/ui/modal/model.go +++ b/ui/modal/model.go @@ -1,15 +1,15 @@ package modal import ( - "github.com/algorandfoundation/algorun-tui/api" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/internal/algod/participation" - "github.com/algorandfoundation/algorun-tui/ui/app" - "github.com/algorandfoundation/algorun-tui/ui/modals/confirm" - "github.com/algorandfoundation/algorun-tui/ui/modals/exception" - "github.com/algorandfoundation/algorun-tui/ui/modals/generate" - "github.com/algorandfoundation/algorun-tui/ui/modals/info" - "github.com/algorandfoundation/algorun-tui/ui/modals/transaction" + "github.com/algorandfoundation/nodekit/api" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/internal/algod/participation" + "github.com/algorandfoundation/nodekit/ui/app" + "github.com/algorandfoundation/nodekit/ui/modals/confirm" + "github.com/algorandfoundation/nodekit/ui/modals/exception" + "github.com/algorandfoundation/nodekit/ui/modals/generate" + "github.com/algorandfoundation/nodekit/ui/modals/info" + "github.com/algorandfoundation/nodekit/ui/modals/transaction" ) type ViewModel struct { diff --git a/ui/modal/view.go b/ui/modal/view.go index 1ed72e75..ee2b0303 100644 --- a/ui/modal/view.go +++ b/ui/modal/view.go @@ -1,8 +1,8 @@ package modal import ( - "github.com/algorandfoundation/algorun-tui/ui/app" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/ui/app" + "github.com/algorandfoundation/nodekit/ui/style" "github.com/charmbracelet/lipgloss" ) diff --git a/ui/modals/confirm/confirm.go b/ui/modals/confirm/confirm.go index 58e4d679..8080724a 100644 --- a/ui/modals/confirm/confirm.go +++ b/ui/modals/confirm/confirm.go @@ -1,10 +1,10 @@ package confirm import ( - "github.com/algorandfoundation/algorun-tui/api" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/ui/app" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/api" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/ui/app" + "github.com/algorandfoundation/nodekit/ui/style" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" ) diff --git a/ui/modals/confirm/confirm_test.go b/ui/modals/confirm/confirm_test.go index 0436d18e..6f6799de 100644 --- a/ui/modals/confirm/confirm_test.go +++ b/ui/modals/confirm/confirm_test.go @@ -2,8 +2,8 @@ package confirm import ( "bytes" - "github.com/algorandfoundation/algorun-tui/internal/test/mock" - "github.com/algorandfoundation/algorun-tui/ui/internal/test" + "github.com/algorandfoundation/nodekit/internal/test/mock" + "github.com/algorandfoundation/nodekit/ui/internal/test" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/x/ansi" "github.com/charmbracelet/x/exp/golden" diff --git a/ui/modals/exception/error.go b/ui/modals/exception/error.go index 63f92465..2fd45797 100644 --- a/ui/modals/exception/error.go +++ b/ui/modals/exception/error.go @@ -1,8 +1,8 @@ package exception import ( - "github.com/algorandfoundation/algorun-tui/ui/app" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/ui/app" + "github.com/algorandfoundation/nodekit/ui/style" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" "github.com/charmbracelet/x/ansi" diff --git a/ui/modals/generate/controller.go b/ui/modals/generate/controller.go index 1130680a..db7728bd 100644 --- a/ui/modals/generate/controller.go +++ b/ui/modals/generate/controller.go @@ -1,12 +1,12 @@ package generate import ( - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/internal/algod/participation" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/internal/algod/participation" "strconv" "time" - "github.com/algorandfoundation/algorun-tui/ui/app" + "github.com/algorandfoundation/nodekit/ui/app" "github.com/charmbracelet/bubbles/spinner" "github.com/charmbracelet/bubbles/textinput" tea "github.com/charmbracelet/bubbletea" diff --git a/ui/modals/generate/generate_test.go b/ui/modals/generate/generate_test.go index b1d71cea..f8c62b1f 100644 --- a/ui/modals/generate/generate_test.go +++ b/ui/modals/generate/generate_test.go @@ -2,7 +2,7 @@ package generate import ( "bytes" - "github.com/algorandfoundation/algorun-tui/ui/internal/test" + "github.com/algorandfoundation/nodekit/ui/internal/test" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/x/ansi" "github.com/charmbracelet/x/exp/golden" diff --git a/ui/modals/generate/model.go b/ui/modals/generate/model.go index f65db1ba..0afd0a5e 100644 --- a/ui/modals/generate/model.go +++ b/ui/modals/generate/model.go @@ -1,7 +1,7 @@ package generate import ( - "github.com/algorandfoundation/algorun-tui/internal/algod" + "github.com/algorandfoundation/nodekit/internal/algod" "github.com/charmbracelet/bubbles/cursor" "github.com/charmbracelet/bubbles/spinner" "github.com/charmbracelet/bubbles/textinput" diff --git a/ui/modals/generate/view.go b/ui/modals/generate/view.go index 748f7356..79a377a1 100644 --- a/ui/modals/generate/view.go +++ b/ui/modals/generate/view.go @@ -3,7 +3,7 @@ package generate import ( "fmt" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/ui/style" "github.com/charmbracelet/lipgloss" ) diff --git a/ui/modals/info/info.go b/ui/modals/info/info.go index 9b18c161..7319685b 100644 --- a/ui/modals/info/info.go +++ b/ui/modals/info/info.go @@ -1,11 +1,11 @@ package info import ( - "github.com/algorandfoundation/algorun-tui/api" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/ui/app" - "github.com/algorandfoundation/algorun-tui/ui/style" - "github.com/algorandfoundation/algorun-tui/ui/utils" + "github.com/algorandfoundation/nodekit/api" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/ui/app" + "github.com/algorandfoundation/nodekit/ui/style" + "github.com/algorandfoundation/nodekit/ui/utils" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" "github.com/charmbracelet/x/ansi" diff --git a/ui/modals/info/info_test.go b/ui/modals/info/info_test.go index 4d869ffc..f3211e9f 100644 --- a/ui/modals/info/info_test.go +++ b/ui/modals/info/info_test.go @@ -2,8 +2,8 @@ package info import ( "bytes" - "github.com/algorandfoundation/algorun-tui/internal/test/mock" - "github.com/algorandfoundation/algorun-tui/ui/internal/test" + "github.com/algorandfoundation/nodekit/internal/test/mock" + "github.com/algorandfoundation/nodekit/ui/internal/test" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/x/ansi" "github.com/charmbracelet/x/exp/golden" diff --git a/ui/modals/transaction/controller.go b/ui/modals/transaction/controller.go index c3a27425..ac28515a 100644 --- a/ui/modals/transaction/controller.go +++ b/ui/modals/transaction/controller.go @@ -3,9 +3,9 @@ package transaction import ( "encoding/base64" "github.com/algorand/go-algorand-sdk/v2/types" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/ui/app" "github.com/algorandfoundation/algourl/encoder" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/ui/app" tea "github.com/charmbracelet/bubbletea" ) diff --git a/ui/modals/transaction/model.go b/ui/modals/transaction/model.go index 51e4a5df..cfee432d 100644 --- a/ui/modals/transaction/model.go +++ b/ui/modals/transaction/model.go @@ -2,11 +2,11 @@ package transaction import ( "fmt" - "github.com/algorandfoundation/algorun-tui/api" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/internal/algod/participation" - "github.com/algorandfoundation/algorun-tui/ui/style" "github.com/algorandfoundation/algourl/encoder" + "github.com/algorandfoundation/nodekit/api" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/internal/algod/participation" + "github.com/algorandfoundation/nodekit/ui/style" ) type ViewModel struct { diff --git a/ui/modals/transaction/transaction_test.go b/ui/modals/transaction/transaction_test.go index 55790df1..fdd5bab2 100644 --- a/ui/modals/transaction/transaction_test.go +++ b/ui/modals/transaction/transaction_test.go @@ -2,9 +2,9 @@ package transaction import ( "bytes" - "github.com/algorandfoundation/algorun-tui/internal/algod/participation" - "github.com/algorandfoundation/algorun-tui/internal/test/mock" - "github.com/algorandfoundation/algorun-tui/ui/internal/test" + "github.com/algorandfoundation/nodekit/internal/algod/participation" + "github.com/algorandfoundation/nodekit/internal/test/mock" + "github.com/algorandfoundation/nodekit/ui/internal/test" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/x/ansi" "github.com/charmbracelet/x/exp/golden" diff --git a/ui/modals/transaction/view.go b/ui/modals/transaction/view.go index 2c9dba1c..d0f7c201 100644 --- a/ui/modals/transaction/view.go +++ b/ui/modals/transaction/view.go @@ -2,8 +2,8 @@ package transaction import ( "fmt" - "github.com/algorandfoundation/algorun-tui/internal/algod/participation" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/internal/algod/participation" + "github.com/algorandfoundation/nodekit/ui/style" "github.com/charmbracelet/lipgloss" "github.com/charmbracelet/x/ansi" ) diff --git a/ui/pages/accounts/accounts_test.go b/ui/pages/accounts/accounts_test.go index 8b931176..0172b01a 100644 --- a/ui/pages/accounts/accounts_test.go +++ b/ui/pages/accounts/accounts_test.go @@ -2,8 +2,8 @@ package accounts import ( "bytes" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/ui/internal/test" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/ui/internal/test" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/x/ansi" "github.com/charmbracelet/x/exp/golden" diff --git a/ui/pages/accounts/controller.go b/ui/pages/accounts/controller.go index 4d8ccaf3..27f91f5b 100644 --- a/ui/pages/accounts/controller.go +++ b/ui/pages/accounts/controller.go @@ -1,9 +1,9 @@ package accounts import ( - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/ui/app" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/ui/app" + "github.com/algorandfoundation/nodekit/ui/style" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" ) diff --git a/ui/pages/accounts/model.go b/ui/pages/accounts/model.go index 67a4538a..d1fa3bf1 100644 --- a/ui/pages/accounts/model.go +++ b/ui/pages/accounts/model.go @@ -1,8 +1,8 @@ package accounts import ( - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/ui/style" "sort" "strconv" "time" diff --git a/ui/pages/accounts/view.go b/ui/pages/accounts/view.go index 0e77098d..2d9d038e 100644 --- a/ui/pages/accounts/view.go +++ b/ui/pages/accounts/view.go @@ -1,7 +1,7 @@ package accounts import ( - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/ui/style" ) func (m ViewModel) View() string { diff --git a/ui/pages/keys/controller.go b/ui/pages/keys/controller.go index 2863cce3..7dab673b 100644 --- a/ui/pages/keys/controller.go +++ b/ui/pages/keys/controller.go @@ -1,10 +1,10 @@ package keys import ( - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/internal/algod/participation" - "github.com/algorandfoundation/algorun-tui/ui/app" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/internal/algod/participation" + "github.com/algorandfoundation/nodekit/ui/app" + "github.com/algorandfoundation/nodekit/ui/style" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" ) diff --git a/ui/pages/keys/keys_test.go b/ui/pages/keys/keys_test.go index 81babbbf..e0eca968 100644 --- a/ui/pages/keys/keys_test.go +++ b/ui/pages/keys/keys_test.go @@ -2,10 +2,10 @@ package keys import ( "bytes" - "github.com/algorandfoundation/algorun-tui/api" - "github.com/algorandfoundation/algorun-tui/internal/test/mock" - "github.com/algorandfoundation/algorun-tui/ui/app" - "github.com/algorandfoundation/algorun-tui/ui/internal/test" + "github.com/algorandfoundation/nodekit/api" + "github.com/algorandfoundation/nodekit/internal/test/mock" + "github.com/algorandfoundation/nodekit/ui/app" + "github.com/algorandfoundation/nodekit/ui/internal/test" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/x/ansi" "github.com/charmbracelet/x/exp/golden" diff --git a/ui/pages/keys/model.go b/ui/pages/keys/model.go index 86d9cd63..27e0a8a2 100644 --- a/ui/pages/keys/model.go +++ b/ui/pages/keys/model.go @@ -1,13 +1,13 @@ package keys import ( - "github.com/algorandfoundation/algorun-tui/internal/algod/participation" + "github.com/algorandfoundation/nodekit/internal/algod/participation" "sort" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/ui/style" - "github.com/algorandfoundation/algorun-tui/api" - "github.com/algorandfoundation/algorun-tui/ui/utils" + "github.com/algorandfoundation/nodekit/api" + "github.com/algorandfoundation/nodekit/ui/utils" "github.com/charmbracelet/bubbles/table" "github.com/charmbracelet/lipgloss" ) diff --git a/ui/pages/keys/view.go b/ui/pages/keys/view.go index b60ce8b4..8f40f733 100644 --- a/ui/pages/keys/view.go +++ b/ui/pages/keys/view.go @@ -1,7 +1,7 @@ package keys import ( - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/ui/style" ) func (m ViewModel) View() string { diff --git a/ui/protocol.go b/ui/protocol.go index 827c19dc..e2ef0950 100644 --- a/ui/protocol.go +++ b/ui/protocol.go @@ -1,8 +1,8 @@ package ui import ( - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/ui/style" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" "strconv" diff --git a/ui/protocol_test.go b/ui/protocol_test.go index 610e1764..fd53625a 100644 --- a/ui/protocol_test.go +++ b/ui/protocol_test.go @@ -2,7 +2,7 @@ package ui import ( "bytes" - "github.com/algorandfoundation/algorun-tui/internal/algod" + "github.com/algorandfoundation/nodekit/internal/algod" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/x/ansi" "github.com/charmbracelet/x/exp/golden" diff --git a/ui/status.go b/ui/status.go index 4b2e343f..a7a4d822 100644 --- a/ui/status.go +++ b/ui/status.go @@ -2,8 +2,8 @@ package ui import ( "fmt" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/ui/style" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/ui/style" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" "math" diff --git a/ui/status_test.go b/ui/status_test.go index acc4fdd9..2822507b 100644 --- a/ui/status_test.go +++ b/ui/status_test.go @@ -2,7 +2,7 @@ package ui import ( "bytes" - "github.com/algorandfoundation/algorun-tui/internal/algod" + "github.com/algorandfoundation/nodekit/internal/algod" "testing" "time" diff --git a/ui/viewport.go b/ui/viewport.go index 2ffc5560..0c4c6d20 100644 --- a/ui/viewport.go +++ b/ui/viewport.go @@ -3,12 +3,12 @@ package ui import ( "errors" "fmt" - "github.com/algorandfoundation/algorun-tui/api" - "github.com/algorandfoundation/algorun-tui/internal/algod" - "github.com/algorandfoundation/algorun-tui/ui/app" - "github.com/algorandfoundation/algorun-tui/ui/modal" - "github.com/algorandfoundation/algorun-tui/ui/pages/accounts" - "github.com/algorandfoundation/algorun-tui/ui/pages/keys" + "github.com/algorandfoundation/nodekit/api" + "github.com/algorandfoundation/nodekit/internal/algod" + "github.com/algorandfoundation/nodekit/ui/app" + "github.com/algorandfoundation/nodekit/ui/modal" + "github.com/algorandfoundation/nodekit/ui/pages/accounts" + "github.com/algorandfoundation/nodekit/ui/pages/keys" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" ) diff --git a/ui/viewport_test.go b/ui/viewport_test.go index dc606a32..fe068bbb 100644 --- a/ui/viewport_test.go +++ b/ui/viewport_test.go @@ -2,9 +2,9 @@ package ui import ( "bytes" - "github.com/algorandfoundation/algorun-tui/internal/test" - "github.com/algorandfoundation/algorun-tui/ui/app" - uitest "github.com/algorandfoundation/algorun-tui/ui/internal/test" + "github.com/algorandfoundation/nodekit/internal/test" + "github.com/algorandfoundation/nodekit/ui/app" + uitest "github.com/algorandfoundation/nodekit/ui/internal/test" "testing" "time" From 1aaa2cc29fc8e98d096b6195860d1f3aefa58971 Mon Sep 17 00:00:00 2001 From: Michael Feher Date: Tue, 7 Jan 2025 08:31:56 -0500 Subject: [PATCH 2/2] refactor: rename to nodekit --- docs/src/pages/index.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/pages/index.astro b/docs/src/pages/index.astro index f994a711..00374699 100644 --- a/docs/src/pages/index.astro +++ b/docs/src/pages/index.astro @@ -28,7 +28,7 @@ export const lang = "en"
- Liquid Auth + NodeKit Follow the white rabbit