File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11(ns eca.features.tools.shell
2- (:require [babashka.fs :as fs]
3- [babashka.process :as p]
4- [clojure.string :as string]
5- [eca.config :as config]
6- [eca.features.tools.util :as tools.util]
7- [eca.logger :as logger]
8- [eca.shared :as shared]))
2+ (:require
3+ [babashka.fs :as fs]
4+ [babashka.process :as p]
5+ [clojure.string :as string]
6+ [eca.config :as config]
7+ [eca.features.tools.util :as tools.util]
8+ [eca.logger :as logger]
9+ [eca.shared :as shared]))
910
1011(set! *warn-on-reflection* true )
1112
1213(def ^:private logger-tag " [TOOLS-SHELL]" )
1314
14- (defn ^:private shell-command [arguments {:keys [db config ]}]
15+ (defn ^:private shell-command [arguments {:keys [db]}]
1516 (let [command-args (get arguments " command" )
16- command (first (string/split command-args #"\s +" ))
1717 user-work-dir (get arguments " working_directory" )]
1818 (or (tools.util/invalid-arguments arguments [[" working_directory" #(or (nil? %)
1919 (fs/exists? %)) " working directory $working_directory does not exist" ]])
Original file line number Diff line number Diff line change 1111
1212(defrecord MockMessenger [calls-atom]
1313 messenger /IMessenger
14- (config-updated [this params]
14+ (config-updated [_this params]
1515 (swap! calls-atom conj [:config-updated params]))
16- (tool-server-updated [this params]
16+ (tool-server-updated [_this params]
1717 (swap! calls-atom conj [:tool-server-updated params]))
18- (chat-content-received [this data ] nil )
19- (showMessage [this msg ] nil )
20- (editor-diagnostics [this uri ] nil ))
18+ (chat-content-received [_this _data ] nil )
19+ (showMessage [_this _msg ] nil )
20+ (editor-diagnostics [_this _uri ] nil ))
2121
2222(deftest initialize-test
2323 (testing " initializationOptions config is merged properly with default init config"
You can’t perform that action at this time.
0 commit comments