From 0f519a6f13138f9b7108361bd792d88e7cb39ca4 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Thu, 29 Aug 2024 10:31:54 +0300 Subject: feat(tools/eaglemode/commands): add Sam/Acme plumb command Change-Id: I80443e88180e87c7f7b7c8ae322c5076d1ce0a02 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12422 Tested-by: BuildkiteCI Reviewed-by: tazjin --- tools/eaglemode/commands/B.nix | 23 +++++++++++++++++++++++ tools/eaglemode/commands/plan9.tga | Bin 0 -> 5926 bytes 2 files changed, 23 insertions(+) create mode 100644 tools/eaglemode/commands/B.nix create mode 100644 tools/eaglemode/commands/plan9.tga (limited to 'tools/eaglemode') diff --git a/tools/eaglemode/commands/B.nix b/tools/eaglemode/commands/B.nix new file mode 100644 index 000000000000..bca3d3a87a87 --- /dev/null +++ b/tools/eaglemode/commands/B.nix @@ -0,0 +1,23 @@ +{ depot, pkgs, ... }: + +let + em = depot.tools.eaglemode; +in +em.mkCommand { + name = "9 B"; + hotkey = "Ctrl+E"; + icon = "${./plan9.tga}"; + + description = '' + Plumb target to Sam or Acme + ''; + + code = '' + ErrorIfNotSingleTarget(); + + my @tgt=GetTgt(); + my $dir=$tgt[0]; + + ExecOrError('${pkgs.plan9port}/bin/9', 'B', $dir); + ''; +} diff --git a/tools/eaglemode/commands/plan9.tga b/tools/eaglemode/commands/plan9.tga new file mode 100644 index 000000000000..55d002221a9b Binary files /dev/null and b/tools/eaglemode/commands/plan9.tga differ -- cgit 1.4.1