-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For non-admin, hide subtitle and session type fields
Add bin/dev prod-repl
- Loading branch information
Showing
9 changed files
with
119 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
{:deps {com.lambdaisland/launchpad {:mvn/version "0.33.149-alpha"}}} | ||
{:deps {com.lambdaisland/launchpad {:mvn/version "0.33.149-alpha"} | ||
com.lambdaisland/cli {:mvn/version "0.18.74"} | ||
com.lambdaisland/shellutils {:mvn/version "0.2.17"}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bb | ||
|
||
(require | ||
'[clojure.java.io :as io] | ||
'[clojure.java.shell :as shell] | ||
'[clojure.pprint :as pprint] | ||
'[clojure.string :as str] | ||
'[lambdaisland.cli :as cli] | ||
'[lambdaisland.shellutils :as su] | ||
) | ||
|
||
(def init {}) | ||
|
||
(defn prod-repl | ||
"REPL into production" | ||
[opts] | ||
(su/spawn "ssh" "root@compass.heartofclojure.eu" "nc" "localhost" "5555")) | ||
|
||
(def commands | ||
["prod-repl" #'prod-repl]) | ||
|
||
(def flags | ||
["-v, --verbose" "Increase verbosity" | ||
"-n, --dry-run" "Show shell commands, but don't execute them"]) | ||
|
||
(cli/dispatch | ||
{:init init | ||
:commands commands | ||
:flags flags}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters