Skip to content

Commit fb1eebc

Browse files
Releasing version 3.22.1
Releasing version 3.22.1
2 parents bb52b3a + b3918f0 commit fb1eebc

File tree

37 files changed

+877
-251
lines changed

37 files changed

+877
-251
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ All notable changes to this project will be documented in this file.
66

77
The format is based on `Keep a Changelog <http://keepachangelog.com/>`__.
88

9-
3.22.0 - 2022-12-13
9+
3.22.1 - 2023-01-10
1010
--------------------
1111
Added
1212
~~~~~

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ Jinja2==3.0.3
1414
jmespath==0.10.0
1515
ndg-httpsclient==0.4.2
1616
mock==2.0.0
17-
oci==2.90.0
17+
oci==2.90.1
1818
packaging==20.2
1919
pluggy==0.13.0
2020
py==1.10.0
2121
pyasn1==0.2.3
22-
pyOpenSSL>=22.1.0
22+
pyOpenSSL>=17.5.0,<=22.1.0
2323
pycparser==2.20
2424
pyparsing==2.2.0
2525
pytest==3.2.3

scripts/examples/project_o/README.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,27 @@ Public Subnet VLKn:US-ASHBURN-AD-1 AVAILABLE 10.0.0.0/24 sales
8989
- `o ocids compartment` *instantly* shows the full OCIDs for all compartments
9090
- `o ocid sales/bastion` *instantly* shows the full OCIDs for all compartments
9191

92+
#### New features in version 1.3 (2022-12-15)
93+
- get paginated results with `o <repeat-last-command> -page next`
94+
- take JSON input from a file and format output with `o`
95+
- `o -i data.json -o name#id#date`
96+
- select child fields from complex output with `-o key.subkey`
97+
- note: some fields are dicts or lists that only present well in "text" format
98+
99+
## Installation
100+
101+
**``o``** is a single file. To install, download **``o``**, place it in your PATH (probably in the same place as ``oci``), and make it executable.
102+
**``o``** works in Linux, Mac, WSL and CloudShell.
103+
104+
Use these commands to get ``o`` from github and install it next to ``oci``.
105+
```
106+
o_src=https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/examples/project_o/o
107+
where=$(which oci) && to=${where%ci} && wget -q $o_src -O $to && chmod a+x $to
108+
```
109+
When you first run `o` it will tell you how to create the commands file *$HOME/.oci/oci_commands*, and then `o` helps you to initialize your *$HOME/.oci/ocids* file.
110+
92111
## How **``o``** works
93-
- **``o``** compares your input with thousands of ``oci`` commands, and uses an intelligent algorithm to find the best match.
112+
- **``o``** compares your input with thousands of ``oci`` commands, and uses an fuzzy matching to find the command you want.
94113

95114
- **``o <command>``** provides a usage synopsis, showing required and optional parameters for matching commands. Add "help" to the end to see global parameters as well. E.g. <nobr>``o <command> help``</nobr> provides the usage synopsis with global parameters, while <nobr>``o <command> --help go``</nobr> runs <nobr>``oci <command> --help``</nobr>.
96115

@@ -118,15 +137,6 @@ You will need:
118137
- Minimally you need permission to **inspect** resources in order for most commands to work.
119138
- ``oci`` must be in your PATH so that ``o`` can find it
120139

121-
## Installation
122-
123-
**``o``** should be in your PATH, probably in the same place as ``oci``. Use these commands to download ``o`` from github and install it next to ``oci``.
124-
```
125-
o_src=https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/examples/project_o/o
126-
where=$(which oci) && wget -q $o_src -O ${where%ci} && chmod a+x ${where%ci}
127-
```
128-
When you first run `o` it will tell you how to create the commands file *$HOME/.oci/oci_commands*, and then `o` helps you to initialize your *$HOME/.oci/ocids* file.
129-
130140
**OCIDs File**
131141

132142
**``o``** uses a local cache of OCID-to-name mappings called the OCIDs file, located at *$HOME/.oci/ocids*. This is populated during setup when you run `o <tenancy_ocid>`.

0 commit comments

Comments
 (0)