From 919b0036e59d2171a7eac36fdcab3d5c7a3663d5 Mon Sep 17 00:00:00 2001 From: daimond113 <72147841+daimond113@users.noreply.github.com> Date: Fri, 13 Dec 2024 23:52:45 +0100 Subject: [PATCH] feat: display included scripts in publish command --- CHANGELOG.md | 3 +++ src/cli/commands/publish.rs | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0745be4..9642619 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added +- Display included scripts in `publish` command by @daimond113 + ### Fixed - Add Roblox types in linker modules even with no config generator script by @daimond113 diff --git a/src/cli/commands/publish.rs b/src/cli/commands/publish.rs index 20a5b1c..183522f 100644 --- a/src/cli/commands/publish.rs +++ b/src/cli/commands/publish.rs @@ -499,6 +499,16 @@ info: otherwise, the file was deemed unnecessary, if you don't understand why, p .bin_path() .map_or("(none)".to_string(), |p| p.to_string()) ); + println!( + "\tscripts: {}", + manifest + .target + .scripts() + .filter(|s| !s.is_empty()) + .map_or("(none)".to_string(), |s| { + s.keys().cloned().collect::>().join(", ") + }) + ); } println!(