You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -532,9 +534,11 @@ See also "[How to update or remove apps manually](#how-to-update-or-remove-apps-
532
534
533
535
`-q {KEYWORD}`
534
536
537
+
`-q --appimages {KEYWORD}`
538
+
535
539
`-q --pkg {PROGRAM1} {PROGRAM2}`
536
540
537
-
DESCRIPTION: Can be used to search for keywords and terms in the list of available applications packages to display matches. This can be useful if you are looking for applications having a specific feature. Add the suboption "--pkg" to search only the names of one or more apps.
541
+
DESCRIPTION: Can be used to search for keywords and terms in the list of available applications packages to display matches. This can be useful if you are looking for applications having a specific feature. Add the "--appimages" option to list only the AppImages. Add the suboption "--pkg" to search only the names of one or more apps.
Copy file name to clipboardExpand all lines: modules/database.am
+30-7Lines changed: 30 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -106,8 +106,6 @@ _list() {
106
106
else
107
107
MESSAGE=$(echo " YOU HAVE INSTALLED $APPSNUMBER APPLICATIONS OUT OF $(grep -e "$" -c $AMPATH/$arch-apps) AVAILABLE")
108
108
fi
109
-
echo -e "\n$MESSAGE\n$MESSAGE2\n LIST OF THE $(grep -e "$" -c $AMPATH/$arch-apps) APPLICATIONS AVAILABLE IN THE 'AM' REPOSITORY:\n\n$(cat $AMPATH/$arch-apps | _clean_lists_and_queries)\n"| less -I
110
-
echo -e "\n$MESSAGE\n$MESSAGE2"
111
109
}
112
110
113
111
# Define functions
@@ -150,6 +148,20 @@ case "$1" in
150
148
151
149
'-l'|'list')
152
150
_list
151
+
if [ "$2"= --appimages ];then
152
+
iftest -f "$AMCACHEDIR/$arch-appimages";then
153
+
echo -e "\n$MESSAGE\n$MESSAGE2\n LIST OF THE $(grep -e "$" -c "$AMCACHEDIR/$arch-appimages") APPIMAGES AVAILABLE IN THE 'AM' REPOSITORY:\n\n$(cat "$AMCACHEDIR/$arch-appimages"| _clean_lists_and_queries)\n"| less -I
echo -e "\n$MESSAGE\n$MESSAGE2\n LIST OF THE $(grep -e "$" -c "$AMCACHEDIR/$arch-appimages") APPIMAGES AVAILABLE IN THE 'AM' REPOSITORY:\n\n$(cat "$AMCACHEDIR/$arch-appimages"| _clean_lists_and_queries)\n"| less -I
159
+
echo -e "\n$MESSAGE\n$MESSAGE2"
160
+
fi
161
+
else
162
+
echo -e "\n$MESSAGE\n$MESSAGE2\n LIST OF THE $(grep -e "$" -c "$AMPATH/$arch-apps") APPLICATIONS AVAILABLE IN THE 'AM' REPOSITORY:\n\n$(cat "$AMPATH/$arch-apps"| _clean_lists_and_queries)\n"| less -I
163
+
echo -e "\n$MESSAGE\n$MESSAGE2"
164
+
fi
153
165
;;
154
166
155
167
'-q'|'query')
@@ -168,11 +180,22 @@ case "$1" in
168
180
echo""
169
181
exit 0
170
182
fi
171
-
ARGS=$(echo "$@"| cut -f2- -d '')
172
-
echo -e "\n Search results for \"$ARGS\":\n"| tr a-z A-Z
0 commit comments