From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/eselect-rust:master commit in: /
Date: Wed, 1 Jan 2020 22:05:58 +0000 (UTC) [thread overview]
Message-ID: <1577916318.c8561adb88c9ade4705ae4e56b3c50a83c9c7af4.whissi@gentoo> (raw)
commit: c8561adb88c9ade4705ae4e56b3c50a83c9c7af4
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 1 22:03:43 2020 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Wed Jan 1 22:05:18 2020 +0000
URL: https://gitweb.gentoo.org/proj/eselect-rust.git/commit/?id=c8561adb
Add show action
Closes: https://bugs.gentoo.org/704502
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
Closes: https://github.com/jauhien/eselect-rust/pull/5
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
rust.eselect.in | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/rust.eselect.in b/rust.eselect.in
index 311d8c0..8e4ea3a 100644
--- a/rust.eselect.in
+++ b/rust.eselect.in
@@ -264,6 +264,26 @@ do_set() {
set_version "$1" || die -q "Couldn't set new active version"
}
+### show action ###
+
+describe_show() {
+ echo "Show the current Rust implementation"
+}
+
+do_show() {
+ [[ -z "${@}" ]] || die -q "Too many parameters"
+ write_list_start "Current Rust implementation:"
+
+ local targets=( $(find_targets) )
+ local target=$(get_current_target)
+
+ if is_number "${target}"; then
+ write_kv_list_entry "${targets[target]}" ""
+ else
+ write_kv_list_entry "(unset)" ""
+ fi
+}
+
### update action ###
describe_update() {
next reply other threads:[~2020-01-01 22:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-01 22:05 Thomas Deutschmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-07-03 7:49 [gentoo-commits] proj/eselect-rust:master commit in: / Georgy Yakovlev
2020-04-19 1:21 Thomas Deutschmann
2020-04-19 1:21 Thomas Deutschmann
2020-04-19 1:21 Thomas Deutschmann
2020-01-01 22:25 Thomas Deutschmann
2020-01-01 22:25 Thomas Deutschmann
2019-03-11 5:02 Thomas Deutschmann
2019-03-11 5:02 Thomas Deutschmann
2019-03-11 5:02 Thomas Deutschmann
2019-03-11 5:02 Thomas Deutschmann
2019-03-11 5:02 Thomas Deutschmann
2019-03-11 5:02 Thomas Deutschmann
2019-03-11 5:02 Thomas Deutschmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1577916318.c8561adb88c9ade4705ae4e56b3c50a83c9c7af4.whissi@gentoo \
--to=whissi@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox