Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ For more usage information you can consult the help:
```
./csshnator --help

usage: csshnator [-h] [-l LOGIN] [-c CLUSTER_NAME]
usage: csshnator [-h] [-l LOGIN] [-p PROFILE] [-s] [-c CLUSTER_NAME]
[cluster_nodes [cluster_nodes ...]]

Open ClusterSSH-like session on Terminator
Expand All @@ -59,6 +59,8 @@ optional arguments:
-h, --help show this help message and exit
-l LOGIN, --login LOGIN
Login username to pass to all hosts used.
-p PROFILE, --profile PROFILE
Profile to use in terminator
-c CLUSTER_NAME, --cluster-name CLUSTER_NAME
Cluster name is a collection of hosts available on
~/.csshnatorrc file
Expand Down
12 changes: 11 additions & 1 deletion csshnator
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ def parse_args(argv):
help='Login username to pass to all hosts used.'
)

parser.add_argument(
'-p',
'--profile',
dest='profile',
type=str,
default="default",
help='Profile to use in terminator'
)

parser.add_argument(
'-s',
'--show',
Expand Down Expand Up @@ -76,6 +85,7 @@ def main(argv):
exit()

cluster_name, login = args.cluster_name, args.login
profile = args.profile

width = gtk.gdk.screen_width()
height = gtk.gdk.screen_height()
Expand Down Expand Up @@ -189,7 +199,7 @@ def main(argv):
term = term_name + str(row) + str(col)
cssh_layout[term] = {
"command": command,
"profile": "default",
"profile": profile,
"type": "Terminal",
"order": order,
"parent": termparent,
Expand Down