mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 02:35:19 +08:00
Added: Add support for getting termux app and plugin app info only in TermuxUtils.getAppInfoMarkdownString()
This commit is contained in:
@@ -37,6 +37,8 @@ public class TermuxUtils {
|
||||
public enum AppInfoMode {
|
||||
/** Get info for Termux app only. */
|
||||
TERMUX_PACKAGE,
|
||||
/** Get info for Termux app and plugin app if context is of plugin app. */
|
||||
TERMUX_AND_PLUGIN_PACKAGE,
|
||||
/** Get info for Termux app and its plugins listed in {@link TermuxConstants#TERMUX_PLUGIN_APP_PACKAGE_NAMES_LIST}. */
|
||||
TERMUX_AND_PLUGIN_PACKAGES,
|
||||
/* Get info for all the Termux app plugins listed in {@link TermuxConstants#TERMUX_PLUGIN_APP_PACKAGE_NAMES_LIST}. */
|
||||
@@ -259,6 +261,9 @@ public class TermuxUtils {
|
||||
case TERMUX_PACKAGE:
|
||||
return getAppInfoMarkdownString(currentPackageContext, false);
|
||||
|
||||
case TERMUX_AND_PLUGIN_PACKAGE:
|
||||
return getAppInfoMarkdownString(currentPackageContext, true);
|
||||
|
||||
case TERMUX_AND_PLUGIN_PACKAGES:
|
||||
appInfo.append(TermuxUtils.getAppInfoMarkdownString(currentPackageContext, false));
|
||||
|
||||
|
Reference in New Issue
Block a user