[PR #382] [MERGED] Simpler list view #1430

Closed
opened 2026-03-01 21:51:08 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/382
Author: @lshamis
Created: 10/6/2020
Status: Merged
Merged: 10/12/2020
Merged by: @cplee

Base: masterHead: master


📝 Commits (4)

📊 Changes

4 files changed (+71 additions, -1 deletions)

View changed files

📝 .github/workflows/push.yml (+4 -0)
📝 .github/workflows/stale.yml (+1 -0)
cmd/list.go (+57 -0)
📝 cmd/root.go (+9 -1)

📄 Description

Issue https://github.com/nektos/act/issues/260

Simplifies the output of -l into a more standard table view.
Also allows for ID discovery, to go with the -j flag.

For this repo:

Before:

# act -l
    ╭──────╮ ╭──────╮
    │ lint │ │ test │
    ╰──────╯ ╰──────╯
            ⬇
 ╭─────────╮ ╭──────────╮
 │ release │ │ snapshot │
 ╰─────────╯ ╰──────────╯

After:

# act -l
ID        Stage  Name      
lint      0      Lint      
test      0      Test      
snapshot  1      Snapshot  
release   1      Release   

For alephzero repo:

Before:

# act -l
 ╭──────────────────────────────╮ ╭───────────────────────────╮ ╭───────────────────╮ ╭──────────────────────╮ ╭──────────────────────────╮ ╭────────────╮ ╭──────────────╮ ╭──────────╮ ╭────────────────────────────╮ ╭───────────────╮ ╭─────────────╮ ╭────────────╮ ╭─────────────────────────────╮ ╭──────────────────╮ ╭────────╮
 │ Undefined Behavior Sanitizer │ │ Ubuntu Bionic Default GCC │ │ Address Sanitizer │ │ Include What You Use │ │ Ubuntu Focal Default GCC │ │ Clang-Tidy │ │ Alpine Clang │ │ Valgrind │ │ Ubuntu Focal Default Clang │ │ Code Coverage │ │ Alpine Musl │ │ Alpine GCC │ │ Ubuntu Bionic Default Clang │ │ Thread Sanitizer │ │ Format │
 ╰──────────────────────────────╯ ╰───────────────────────────╯ ╰───────────────────╯ ╰──────────────────────╯ ╰──────────────────────────╯ ╰────────────╯ ╰──────────────╯ ╰──────────╯ ╰────────────────────────────╯ ╰───────────────╯ ╰─────────────╯ ╰────────────╯ ╰─────────────────────────────╯ ╰──────────────────╯ ╰────────╯

After:

# act -l
ID            Stage  Name                          
ubsan         0      Undefined Behavior Sanitizer  
iwyu          0      Include What You Use          
tsan          0      Thread Sanitizer              
clang_tidy    0      Clang-Tidy                    
bionic_gcc    0      Ubuntu Bionic Default GCC     
alpine_musl   0      Alpine Musl                   
asan          0      Address Sanitizer             
focal_gcc     0      Ubuntu Focal Default GCC      
format        0      Format                        
cov           0      Code Coverage                 
alpine_gcc    0      Alpine GCC                    
valgrind      0      Valgrind                      
bionic_clang  0      Ubuntu Bionic Default Clang   
focal_clang   0      Ubuntu Focal Default Clang    
alpine_clang  0      Alpine Clang                  

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/382 **Author:** [@lshamis](https://github.com/lshamis) **Created:** 10/6/2020 **Status:** ✅ Merged **Merged:** 10/12/2020 **Merged by:** [@cplee](https://github.com/cplee) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (4) - [`b8ee9fc`](https://github.com/nektos/act/commit/b8ee9fc0e44fbefa69df14bf41a77303d5656083) Simpler list view - [`3346ed6`](https://github.com/nektos/act/commit/3346ed633809da9517b2a777b54347f245ff8c37) lint - [`1f725e5`](https://github.com/nektos/act/commit/1f725e52e3b9512d522029f26cd79eeb9c26b88a) Merge branch 'master' into master - [`964f86e`](https://github.com/nektos/act/commit/964f86e6a10cbf56624062ab8b14c3bd10b54198) readding graph viz with -g/--graph ### 📊 Changes **4 files changed** (+71 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/push.yml` (+4 -0) 📝 `.github/workflows/stale.yml` (+1 -0) ➕ `cmd/list.go` (+57 -0) 📝 `cmd/root.go` (+9 -1) </details> ### 📄 Description Issue https://github.com/nektos/act/issues/260 Simplifies the output of `-l` into a more standard table view. Also allows for ID discovery, to go with the `-j` flag. For this repo: =========================================== Before: ``` # act -l ╭──────╮ ╭──────╮ │ lint │ │ test │ ╰──────╯ ╰──────╯ ⬇ ╭─────────╮ ╭──────────╮ │ release │ │ snapshot │ ╰─────────╯ ╰──────────╯ ``` After: ``` # act -l ID Stage Name lint 0 Lint test 0 Test snapshot 1 Snapshot release 1 Release ``` For alephzero repo: =========================================== Before: ``` # act -l ╭──────────────────────────────╮ ╭───────────────────────────╮ ╭───────────────────╮ ╭──────────────────────╮ ╭──────────────────────────╮ ╭────────────╮ ╭──────────────╮ ╭──────────╮ ╭────────────────────────────╮ ╭───────────────╮ ╭─────────────╮ ╭────────────╮ ╭─────────────────────────────╮ ╭──────────────────╮ ╭────────╮ │ Undefined Behavior Sanitizer │ │ Ubuntu Bionic Default GCC │ │ Address Sanitizer │ │ Include What You Use │ │ Ubuntu Focal Default GCC │ │ Clang-Tidy │ │ Alpine Clang │ │ Valgrind │ │ Ubuntu Focal Default Clang │ │ Code Coverage │ │ Alpine Musl │ │ Alpine GCC │ │ Ubuntu Bionic Default Clang │ │ Thread Sanitizer │ │ Format │ ╰──────────────────────────────╯ ╰───────────────────────────╯ ╰───────────────────╯ ╰──────────────────────╯ ╰──────────────────────────╯ ╰────────────╯ ╰──────────────╯ ╰──────────╯ ╰────────────────────────────╯ ╰───────────────╯ ╰─────────────╯ ╰────────────╯ ╰─────────────────────────────╯ ╰──────────────────╯ ╰────────╯ ``` After: ``` # act -l ID Stage Name ubsan 0 Undefined Behavior Sanitizer iwyu 0 Include What You Use tsan 0 Thread Sanitizer clang_tidy 0 Clang-Tidy bionic_gcc 0 Ubuntu Bionic Default GCC alpine_musl 0 Alpine Musl asan 0 Address Sanitizer focal_gcc 0 Ubuntu Focal Default GCC format 0 Format cov 0 Code Coverage alpine_gcc 0 Alpine GCC valgrind 0 Valgrind bionic_clang 0 Ubuntu Bionic Default Clang focal_clang 0 Ubuntu Focal Default Clang alpine_clang 0 Alpine Clang ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:51:08 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1430
No description provided.