2020-05-05 10:05:23 +02:00
|
|
|
# to yaml
|
2019-10-03 15:37:48 +02:00
|
|
|
|
|
|
|
Converts table data into yaml text.
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
```shell
|
|
|
|
> shells
|
|
|
|
━━━┯━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━
|
2020-03-13 18:23:41 +01:00
|
|
|
# │ │ name │ path
|
2019-10-03 15:37:48 +02:00
|
|
|
───┼───┼────────────┼────────────────────────
|
2020-03-13 18:23:41 +01:00
|
|
|
0 │ X │ filesystem │ /home/shaurya
|
|
|
|
1 │ │ filesystem │ /home/shaurya/Pictures
|
|
|
|
2 │ │ filesystem │ /home/shaurya/Desktop
|
2019-10-03 15:37:48 +02:00
|
|
|
━━━┷━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━
|
2020-05-05 10:05:23 +02:00
|
|
|
> shells | to yaml
|
2019-10-03 15:37:48 +02:00
|
|
|
---
|
|
|
|
- " ": X
|
|
|
|
name: filesystem
|
|
|
|
path: /home/shaurya
|
|
|
|
- " ": " "
|
|
|
|
name: filesystem
|
|
|
|
path: /home/shaurya/Pictures
|
|
|
|
- " ": " "
|
|
|
|
name: filesystem
|
|
|
|
path: /home/shaurya/Desktop
|
|
|
|
```
|
2019-10-04 03:10:16 +02:00
|
|
|
|
|
|
|
```shell
|
2020-03-13 18:23:41 +01:00
|
|
|
> open appveyor.yml
|
2019-10-04 03:10:16 +02:00
|
|
|
━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┯━━━━━━━┯━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━
|
2020-03-13 18:23:41 +01:00
|
|
|
image │ environment │ install │ build │ test_script │ cache
|
2019-10-04 03:10:16 +02:00
|
|
|
────────────────────┼────────────────┼─────────────────┼───────┼─────────────────┼─────────────────
|
2020-03-13 18:23:41 +01:00
|
|
|
Visual Studio 2017 │ [table: 1 row] │ [table: 5 rows] │ │ [table: 2 rows] │ [table: 2 rows]
|
2019-10-04 03:10:16 +02:00
|
|
|
━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━┷━━━━━━━┷━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━
|
2020-05-05 10:05:23 +02:00
|
|
|
> open appveyor.yml | to yaml
|
2019-10-04 03:10:16 +02:00
|
|
|
---
|
|
|
|
image: Visual Studio 2017
|
|
|
|
environment:
|
|
|
|
global:
|
|
|
|
PROJECT_NAME: nushell
|
|
|
|
RUST_BACKTRACE: 1
|
|
|
|
matrix:
|
|
|
|
- TARGET: x86_64-pc-windows-msvc
|
|
|
|
CHANNEL: nightly
|
|
|
|
BITS: 64
|
|
|
|
install:
|
|
|
|
- "set PATH=C:\\msys64\\mingw%BITS%\\bin;C:\\msys64\\usr\\bin;%PATH%"
|
|
|
|
- "curl -sSf -o rustup-init.exe https://win.rustup.rs"
|
|
|
|
- rustup-init.exe -y --default-host %TARGET% --default-toolchain %CHANNEL%-%TARGET%
|
|
|
|
- "set PATH=%PATH%;C:\\Users\\appveyor\\.cargo\\bin"
|
|
|
|
- "call \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat\""
|
|
|
|
build: false
|
|
|
|
test_script:
|
|
|
|
- cargo build --verbose
|
|
|
|
- cargo test --all --verbose
|
|
|
|
cache:
|
|
|
|
- target -> Cargo.lock
|
|
|
|
- "C:\\Users\\appveyor\\.cargo\\registry -> Cargo.lock"
|
|
|
|
```
|