File: info.md

package info (click to toggle)
eos-downloader 0.14.0-2
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 5,952 kB
  • sloc: xml: 18,784; python: 5,412; makefile: 82; javascript: 9
file content (89 lines) | stat: -rw-r--r-- 2,695 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Get information about softwares versions

`ardl` comes with a tool to get version information from Arista website. It is valid for both __CloudVision__ and __EOS__ packages.

## Get information about available versions

```bash
ardl info versions --help
Usage: ardl info versions [OPTIONS]

  List available versions of Arista packages (eos or CVP) packages

Options:
  --format [json|text|fancy]  Output format
  --package [eos|cvp]
  -b, --branch TEXT
  --release-type TEXT
  --help                      Show this message and exit.
```

## Usage example

With this CLI, you can specify either a branch or a release type when applicable to filter information:

### Fancy format (default)

```bash
# Get F version in branch 4.29 using default fancy mode
ardl info versions --branch 4.29 --release-type F

╭──────────────────────────── Available versions ──────────────────────────────╮
│                                                                              │
│   - version: 4.29.2F                                                         │
│   - version: 4.29.1F                                                         │
│   - version: 4.29.0.2F                                                       │
│   - version: 4.29.2F                                                         │
│   - version: 4.29.1F                                                         │
│   - version: 4.29.0.2F                                                       │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
```

### Text Format

```bash
# Get M version in branch 4.29 using text output
❯ ardl info versions --branch 4.29 --release-type M --format text
Listing versions
  - version: 4.29.10M
  - version: 4.29.9.1M
  - version: 4.29.9M
  - version: 4.29.8M
  - version: 4.29.7.1M
  ...
```

### JSON format

You can also specify JSON as output format:

```bash
ardl info versions --branch 4.29 --release-type F --format json
[
  {
    "version": "4.29.2F",
    "branch": "4.29"
  },
  {
    "version": "4.29.1F",
    "branch": "4.29"
  },
  {
    "version": "4.29.0.2F",
    "branch": "4.29"
  },
  {
    "version": "4.29.2F",
    "branch": "4.29"
  },
  {
    "version": "4.29.1F",
    "branch": "4.29"
  },
  {
    "version": "4.29.0.2F",
    "branch": "4.29"
  }
]
```