Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
cdd2d6ef
Unverified
Commit
cdd2d6ef
authored
Nov 15, 2021
by
sed-i
Committed by
Marc Cornellà
Feb 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(juju): introduce additional juju aliases (#10426)
parent
f0458106
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
13 deletions
+33
-13
README.md
plugins/juju/README.md
+22
-12
juju.plugin.zsh
plugins/juju/juju.plugin.zsh
+11
-1
No files found.
plugins/juju/README.md
View file @
cdd2d6ef
...
...
@@ -18,26 +18,36 @@ Naming convention:
### General
| Alias | Command | Description |
|--------|---------------------------------------------|--------------------------------------------------------|
|
`jdl`
|
`juju debug-log --ms`
| Display log, with millisecond resolution |
|
`jdlr`
|
`juju debug-log --ms --replay`
| Replay entire log |
|
`jh`
|
`juju help`
| Show help on a command or other topic |
|
`jssl`
|
`juju juju show-status-log`
| Output past statuses for the specified entity |
|
`jstj`
|
`juju status --format=json`
| Show status in json format (more detailed) |
|
`jst`
|
`juju status --relations --storage --color`
| Show status, including relations and storage, in color |
| Alias | Command | Description |
|---------|---------------------------------------------|--------------------------------------------------------|
|
`j`
|
`juju`
| The juju command |
|
`jcld`
|
`juju clouds`
| Lists all clouds with registered credentials |
|
`jclda`
|
`juju clouds --all`
| Lists all clouds available to Juju |
|
`jdl`
|
`juju debug-log --ms`
| Display log, with millisecond resolution |
|
`jdlr`
|
`juju debug-log --ms --replay`
| Replay entire log |
|
`jh`
|
`juju help`
| Show help on a command or other topic |
|
`jssl`
|
`juju show-status-log`
| Output past statuses for the specified entity |
|
`jstj`
|
`juju status --format=json`
| Show status in json format (more detailed) |
|
`jst`
|
`juju status --relations --color`
| Show status, including relations, in color |
|
`jsts`
|
`juju status --relations --storage --color`
| Show status, including relations and storage, in color |
### Bootstrap
| Alias | Command | Description |
|-------|---------------------------|-------------------------------------------|
|
`jb`
|
`juju bootstrap`
| Initializing a Juju cloud environment |
|
`jbm`
|
`juju bootstrap microk8s`
| Initializing a MicroK8s cloud environment |
| Alias | Command | Description |
|---------|-------------------------------------|-------------------------------------------------------|
|
`jb`
|
`juju bootstrap`
| Initializing a Juju cloud environment |
|
`jbng`
|
`juju bootstrap --no-gui`
| Initializing a Juju cloud environment without GUI |
|
`jbl`
|
`juju bootstrap localhost`
| Initializing an lxd cloud environment |
|
`jblng`
|
`juju bootstrap --no-gui localhost`
| Initializing an lxd cloud environment without GUI |
|
`jbm`
|
`juju bootstrap microk8s`
| Initializing a MicroK8s cloud environment |
|
`jbmng`
|
`juju bootstrap --no-gui microk8s`
| Initializing a MicroK8s cloud environment without GUI |
### Controller
| Alias | Command | Description |
|----------|---------------------------------------------------------------------------------------|-------------------------------------------------------------------|
|
`jctl`
|
`juju controllers`
| List all controllers |
|
`jctlr`
|
`juju controllers --refresh`
| List all controllers (download latest details) |
|
`jdc`
|
`juju destroy-controller --destroy-all-models`
| Destroy a controller |
|
`jdc!`
|
`juju destroy-controller --destroy-all-models --force --no-wait -y`
| Destroy a controller |
|
`jdcds`
|
`juju destroy-controller --destroy-all-models --destroy-storage`
| Destroy a controller and associated storage |
...
...
plugins/juju/juju.plugin.zsh
View file @
cdd2d6ef
...
...
@@ -17,11 +17,20 @@ unset completion_file
# - `!` means --force --no-wait -y #
# - `ds` suffix means --destroy-storage #
# ---------------------------------------------------------- #
alias
j
=
"juju"
alias
jam
=
"juju add-model --config logging-config=
\"
<root>=WARNING; unit=DEBUG
\"\
--config update-status-hook-interval=
\"
60m
\"
"
alias
jb
=
'juju bootstrap'
alias
jbng
=
'juju bootstrap --no-gui'
alias
jbl
=
'juju bootstrap localhost'
alias
jblng
=
'juju bootstrap --no-gui localhost'
alias
jbm
=
'juju bootstrap microk8s'
alias
jbmng
=
'juju bootstrap --no-gui microk8s'
alias
jc
=
'juju config'
alias
jcld
=
'juju clouds'
alias
jclda
=
'juju clouds --all'
alias
jctl
=
'juju controllers'
alias
jctlr
=
'juju controllers --refresh'
alias
jdc
=
'juju destroy-controller --destroy-all-models'
alias
'jdc!'
=
'juju destroy-controller --destroy-all-models --force --no-wait -y'
alias
jdcds
=
'juju destroy-controller --destroy-all-models --destroy-storage'
...
...
@@ -61,7 +70,8 @@ alias jshc='juju ssh --container'
alias
jshm
=
'juju show-model'
alias
jssl
=
'juju show-status-log'
alias
jstj
=
'juju status --format=json'
alias
jst
=
'juju status --relations --storage --color'
alias
jst
=
'juju status --relations --color'
alias
jsts
=
'juju status --relations --storage --color'
alias
jsu
=
'juju show-unit'
alias
jsw
=
'juju switch'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment