Skip to content

Commit

Permalink
Change pueue status table style
Browse files Browse the repository at this point in the history
  • Loading branch information
Nukesor committed Jan 29, 2020
1 parent b0f7015 commit ba6ef80
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 18 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Packaging

on:
push:
banches:
-master
pull_request:

jobs:
publish:
name: Test building for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# This should work with only the `include`s but it currently doesn't because of this bug:
# https://gh.neting.ccmunity/t5/How-to-use-Git-and-GitHub/GitHub-Actions-Matrix-options-dont-work-as-documented/td-p/29558
os: [ubuntu-latest, macos-latest]
include:
- os: ubuntu-latest
client_name: pueue
client_release_name: pueue-linux-amd64
daemon_name: pueued
daemon_release_name: pueued-linux-amd64
- os: macos-latest
client_name: pueue
client_release_name: pueue-macos-amd64
daemon_name: pueued
daemon_release_name: pueued-macos-amd64

steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
- uses: actions/checkout@v1

- name: Run tests
run: cargo test --verbose

- name: Build the binary
run: cargo build --all
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# v0.1.1
# v0.1.3
- Change table design of `pueue status`

# v0.1.2
- Handle broken UTF8 in `show` with `-f` and `-e` flags.
- Allow restart of `Killed` processes

Expand Down
26 changes: 13 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pueue"
description = "A cli tool for managing long running shell commands."
version = "0.1.2"
version = "0.1.3"
authors = ["Arne Beer <contact@arne.beer>"]
homepage = "https://github.com/nukesor/pueue"
repository = "https://github.com/nukesor/pueue"
Expand Down Expand Up @@ -54,5 +54,5 @@ config = "^0.10"
simplelog = "0.7"
structopt = "0.3"
crossterm = "^0.14"
comfy-table= "0.0.4"
comfy-table= "0.0.5"
tempfile = "^3"
4 changes: 2 additions & 2 deletions client/output.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use ::comfy_table::prelude::*;
use ::comfy_table::style::presets::UTF8_FULL;
use ::comfy_table::style::presets::UTF8_HORIZONTAL_BORDERS_ONLY;
use ::crossterm::style::{style, Attribute, Color};
use ::std::string::ToString;

Expand Down Expand Up @@ -48,7 +48,7 @@ pub fn print_state(message: Message, json: bool) {
let mut table = Table::new();
table
.set_content_arrangement(ContentArrangement::Dynamic)
.load_preset(UTF8_FULL)
.load_preset(UTF8_HORIZONTAL_BORDERS_ONLY)
.set_header(vec![
Cell::new("Index"),
Cell::new("Status"),
Expand Down

0 comments on commit ba6ef80

Please sign in to comment.