Revert "fix: Remove get_args 🐛"

This reverts commit 5f5b335041.
This commit is contained in:
Dheepak Krishnamurthy 2021-12-07 10:11:37 -07:00
parent 16052281e4
commit 0ce397d0f7
2 changed files with 24 additions and 37 deletions

View file

@ -4,7 +4,7 @@ on:
branches: branches:
- main - main
tags: tags:
- v* - v*
jobs: jobs:
build: build:
@ -15,44 +15,44 @@ jobs:
include: include:
- os: macOS-latest - os: macOS-latest
target: x86_64-apple-darwin target: x86_64-apple-darwin
rust_flags: "" rust_flags: ''
features: "" features: ''
binary_postfix: "" binary_postfix: ''
upx_args: --best upx_args: --best
strip: true strip: true
- os: ubuntu-latest - os: ubuntu-latest
target: x86_64-unknown-linux-gnu target: x86_64-unknown-linux-gnu
rust_flags: "" rust_flags: ''
features: "" features: ''
binary_postfix: "" binary_postfix: ''
upx_args: --best --lzma upx_args: --best --lzma
strip: true strip: true
- os: ubuntu-latest - os: ubuntu-latest
target: x86_64-unknown-linux-musl target: x86_64-unknown-linux-musl
rust_flags: "" rust_flags: ''
features: "" features: ''
binary: "taskwarrior-tui-x86_64-unknown-linux-musl" binary: 'taskwarrior-tui-x86_64-unknown-linux-musl'
upx_args: --best --lzma upx_args: --best --lzma
strip: true strip: true
- os: windows-latest - os: windows-latest
target: x86_64-pc-windows-gnu target: x86_64-pc-windows-gnu
rust_flags: -C target-feature=+crt-static rust_flags: -C target-feature=+crt-static
features: "" features: ''
binary_postfix: ".exe" binary_postfix: '.exe'
upx_args: -9 upx_args: -9
strip: false strip: false
- os: windows-latest - os: windows-latest
target: x86_64-pc-windows-msvc target: x86_64-pc-windows-msvc
rust_flags: -C target-feature=+crt-static rust_flags: -C target-feature=+crt-static
features: "" features: ''
binary_postfix: ".exe" binary_postfix: '.exe'
upx_args: -9 upx_args: -9
strip: false strip: false
- os: windows-latest - os: windows-latest
target: i686-pc-windows-msvc target: i686-pc-windows-msvc
rust_flags: -C target-feature=+crt-static rust_flags: -C target-feature=+crt-static
features: "" features: ''
binary_postfix: ".exe" binary_postfix: '.exe'
upx_args: -9 upx_args: -9
strip: false strip: false
env: env:
@ -63,6 +63,7 @@ jobs:
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
with: with:
toolchain: stable toolchain: stable
target: ${{ matrix.target }}
default: true default: true
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
@ -126,15 +127,6 @@ jobs:
steps: steps:
- name: Check out Git repository - name: Check out Git repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
default: true
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
command: build command: build
@ -163,10 +155,6 @@ jobs:
steps: steps:
- name: Check out Git repository - name: Check out Git repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
command: build command: build
@ -197,10 +185,6 @@ jobs:
steps: steps:
- name: Check out Git repository - name: Check out Git repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
command: build command: build
@ -215,10 +199,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
command: build command: build

View file

@ -1590,6 +1590,13 @@ impl TaskwarriorTui {
} }
info!("Running `{:?}`", task); info!("Running `{:?}`", task);
debug!(
"Running `task {}`",
task.get_args()
.map(|s| s.to_string_lossy().to_string())
.collect::<Vec<String>>()
.join(" ")
);
let output = task.output()?; let output = task.output()?;
let data = String::from_utf8_lossy(&output.stdout); let data = String::from_utf8_lossy(&output.stdout);
let error = String::from_utf8_lossy(&output.stderr); let error = String::from_utf8_lossy(&output.stderr);