Skip to content

Commit

Permalink
refactor(commands/install): fix all warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
IogaMaster committed Dec 29, 2024
1 parent 276b802 commit 474d8ab
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/blizzard.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import argv
import clip
import clip/help
import gleam/io
import gleam/string

import install

Expand Down
4 changes: 1 addition & 3 deletions src/checks.gleam
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import gleam/io
import gleam/list
import gleam/option
import gleam/string
import glexec as exec
import utils

pub fn checks(system_address_pairs: List(#(String, String))) {
io.println("📋 Preflight Checks:")
runner_has_nix()
use pair <- list.each(system_address_pairs)
let #(system, address) = pair
let #(system, _address) = pair

io.println("🖥️ " <> system <> ":")
ping(pair)
Expand Down
4 changes: 0 additions & 4 deletions src/install.gleam
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import checks
import clip
import clip/arg
import clip/flag
import clip/help
import clip/opt
import gleam/io
import gleam/list
import gleam/set
import gleam/string

pub type InstallArgs {
InstallArgs(systems_and_addresses: List(String))
Expand Down
2 changes: 1 addition & 1 deletion src/utils.gleam
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import glexec as exec

pub fn run_on_system(system_address_pair: #(String, String), command: String) {
let #(system, address) = system_address_pair
let #(_system, address) = system_address_pair
let assert Ok(ssh) = exec.find_executable("ssh")
exec.new()
|> exec.with_stdin(exec.StdinPipe)
Expand Down

0 comments on commit 474d8ab

Please sign in to comment.