feat: add files() function #19

Merged
xpamych merged 1 commits from Maks1mS/ALR:feat/files-function into master 2025-01-24 16:40:22 +00:00
Contributor

Данный PR добавляет функцию files.
Пример использования:

files() {
    files-find-lang yandex-disk
	files-find-doc yandex-disk
	
	echo ./usr/bin/yandex-disk
	echo ./etc/bash_completion.d/yandex-disk-completion.bash
	echo ./usr/share/man/**/man1/*
	echo ./usr/share/licenses/yandex-disk/**
}
$ rpm -qpl ./*.rpm
/etc/bash_completion.d/yandex-disk-completion.bash
/usr/bin/yandex-disk
/usr/share/doc/yandex-disk
/usr/share/doc/yandex-disk/changelog.gz
/usr/share/doc/yandex-disk/copyright
/usr/share/licenses/yandex-disk
/usr/share/licenses/yandex-disk/LICENSE
/usr/share/locale/ru/LC_MESSAGES/yandex-disk.mo
/usr/share/locale/tr/LC_MESSAGES/yandex-disk.mo
/usr/share/locale/uk/LC_MESSAGES/yandex-disk.mo
/usr/share/man/man1/yandex-disk.1.gz
/usr/share/man/ru/man1/yandex-disk.1.gz
/usr/share/man/tr/man1/yandex-disk.1.gz
/usr/share/man/uk/man1/yandex-disk.1.gz

Также были добавленыfiles-find-lang, files-find-doc и тесты для них.

closes #13

Данный PR добавляет функцию files. Пример использования: ``` files() { files-find-lang yandex-disk files-find-doc yandex-disk echo ./usr/bin/yandex-disk echo ./etc/bash_completion.d/yandex-disk-completion.bash echo ./usr/share/man/**/man1/* echo ./usr/share/licenses/yandex-disk/** } ``` ``` $ rpm -qpl ./*.rpm /etc/bash_completion.d/yandex-disk-completion.bash /usr/bin/yandex-disk /usr/share/doc/yandex-disk /usr/share/doc/yandex-disk/changelog.gz /usr/share/doc/yandex-disk/copyright /usr/share/licenses/yandex-disk /usr/share/licenses/yandex-disk/LICENSE /usr/share/locale/ru/LC_MESSAGES/yandex-disk.mo /usr/share/locale/tr/LC_MESSAGES/yandex-disk.mo /usr/share/locale/uk/LC_MESSAGES/yandex-disk.mo /usr/share/man/man1/yandex-disk.1.gz /usr/share/man/ru/man1/yandex-disk.1.gz /usr/share/man/tr/man1/yandex-disk.1.gz /usr/share/man/uk/man1/yandex-disk.1.gz ``` Также были добавлены`files-find-lang`, `files-find-doc` и тесты для них. closes #13
Maks1mS added 1 commit 2025-01-24 16:35:43 +00:00
also add files-find-lang and files-find-doc helpers
xpamych merged commit fcc9ef5474 into master 2025-01-24 16:40:22 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Plemya-x/ALR#19
No description provided.