From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8F8B7158042 for ; Wed, 23 Oct 2024 19:56:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 744F2E09E2; Wed, 23 Oct 2024 19:56:12 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2E852E09D8 for ; Wed, 23 Oct 2024 19:56:12 +0000 (UTC) From: xgqt@gentoo.org To: gentoo-dev@lists.gentoo.org Cc: dotnet@gentoo.org, =?UTF-8?q?Maciej=20Bar=C4=87?= Subject: [gentoo-dev] [PATCH 2/2] eclass/dotnet-pkg-base: add efsi function for running FSI Date: Wed, 23 Oct 2024 21:55:43 +0200 Message-ID: <20241023195546.87280-2-xgqt@gentoo.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241023195546.87280-1-xgqt@gentoo.org> References: <20241023195546.87280-1-xgqt@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 4e07cd3d-0869-4729-8ba5-112f71df703c X-Archives-Hash: 26a71fc183a41b9014f36abcc38ff878 From: Maciej Barć This will replace "edotnet fsi" as used in "app-shells/pwsh" package. Signed-off-by: Maciej Barć --- eclass/dotnet-pkg-base.eclass | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/eclass/dotnet-pkg-base.eclass b/eclass/dotnet-pkg-base.eclass index 8cedde073b..26db694f59 100644 --- a/eclass/dotnet-pkg-base.eclass +++ b/eclass/dotnet-pkg-base.eclass @@ -294,6 +294,18 @@ edotnet() { edo "${DOTNET_PKG_EXECUTABLE}" "${@}" } +# @FUNCTION: efsi +# @USAGE: [args...] +# @DESCRIPTION: +# Call dotnet fsi, passing the supplied arguments. +# FSI is the F# interpreter shipped with .NET SDK, it is useful for running F# +# maintenance scripts. +efsi() { + debug-print-function ${FUNCNAME} "$@" + + edotnet fsi --nologo "${@}" +} + # @FUNCTION: dotnet-pkg-base_info # @DESCRIPTION: # Show information about current .NET SDK that is being used. -- 2.45.2