Aion-Fs

 view release on metacpan or  search on metacpan

README.md  view on Meta::CPAN

wildcard "*.{pm,pl}"  # \> (?^usn:^.*?\.(pm|pl)$)
wildcard "?_??_**"  # \> (?^usn:^._[^/]_[^/]*?$)
```

Используется в фильтрах функции `find`.

### See also

* [File::Wildcard](https://metacpan.org/pod/File::Wildcard).
* [String::Wildcard::Bash](https://metacpan.org/pod/String::Wildcard::Bash).
* [Text::Glob](https://metacpan.org/pod/Text::Glob) – `glob_to_regex("*.{pm,pl}")`.

## goto_editor ($path, $line)

Открывает файл в редакторе из .config на указанной строке. По умолчанию использует `vscodium %p:%l`.

Файл .config.pm:
```perl
package config;

config_module 'Aion::Fs' => {

i18n/Aion/Fs.ru-en.po  view on Meta::CPAN


msgid "Модули для определения ОС, а значит и определения, какие в ОС файловые пути:"
msgstr "Modules for determining the OS, and therefore determining what file paths are in the OS:"

msgid ""
"* `$^O` – суперглобальная переменная с названием текущей ОС.\n"
"* [Devel::CheckOS](https://metacpan.org/pod/Devel::CheckOS), [Perl::OSType](https://metacpan.org/pod/Perl::OSType) – определяют ОС.\n"
"* [Devel::AssertOS](https://metacpan.org/pod/Devel::AssertOS) – запрещает использовать модуль вне указанных ОС.\n"
"* [System::Info](https://metacpan.org/pod/System::Info) – информация об ОС, её версии, дистрибутиве, CPU и хосте."
msgstr ""
"* `$^O` – superglobal variable with the name of the current OS.\n"
"* [Devel::CheckOS](https://metacpan.org/pod/Devel::CheckOS), [Perl::OSType](https://metacpan.org/pod/Perl::OSType) – define the OS.\n"
"* [Devel::AssertOS](https://metacpan.org/pod/Devel::AssertOS) – prohibits the use of the module outside the specified OS.\n"
"* [System::Info](https://metacpan.org/pod/System::Info) – information about the OS, its version, distribution, CPU and host."

msgid "Выделяют части файловых путей:"
msgstr "Parts of file paths are distinguished:"

msgid ""
"* [File::Spec](https://metacpan.org/pod/File::Spec) – `($volume, $directories, $file) = File::Spec->splitpath($path)`. Поддерживает только unix, win32, os/2, vms, cygwin и amigaos.\n"
"* [File::Spec::Functions](https://metacpan.org/pod/File::Spec::Functions) – `($volume, $directories, $file) = splitpath($path)`.\n"

i18n/Aion/Fs.ru-en.po  view on Meta::CPAN

"* `}` - `)`\n"
"* `,` - `|`\n"
"* Other characters are escaped using `quotemeta`."

msgid "Используется в фильтрах функции `find`."
msgstr "Used in filters of the `find` function."

msgid ""
"* [File::Wildcard](https://metacpan.org/pod/File::Wildcard).\n"
"* [String::Wildcard::Bash](https://metacpan.org/pod/String::Wildcard::Bash).\n"
"* [Text::Glob](https://metacpan.org/pod/Text::Glob) – `glob_to_regex(\"*.{pm,pl}\")`."
msgstr ""
"* [File::Wildcard](https://metacpan.org/pod/File::Wildcard).\n"
"* [String::Wildcard::Bash](https://metacpan.org/pod/String::Wildcard::Bash).\n"
"* [Text::Glob](https://metacpan.org/pod/Text::Glob) – `glob_to_regex(\"*.{pm,pl}\")`."

msgid "Открывает файл в редакторе из .config на указанной строке. По умолчанию использует `vscodium %p:%l`."
msgstr "Opens the file in the editor from .config at the specified line. Defaults to `vscodium %p:%l`."

msgid "Файл .config.pm:"
msgstr ".config.pm file:"

msgid "Переводит пакет в путь ФС. Без параметра использует `$_`."
msgstr "Transfers the packet to the FS path. Without a parameter, uses `$_`."

lib/Aion/Fs.md  view on Meta::CPAN

wildcard "*.{pm,pl}"  # \> (?^usn:^.*?\.(pm|pl)$)
wildcard "?_??_**"  # \> (?^usn:^._[^/]_[^/]*?$)
```

Используется в фильтрах функции `find`.

### See also

* [File::Wildcard](https://metacpan.org/pod/File::Wildcard).
* [String::Wildcard::Bash](https://metacpan.org/pod/String::Wildcard::Bash).
* [Text::Glob](https://metacpan.org/pod/Text::Glob) – `glob_to_regex("*.{pm,pl}")`.

## goto_editor ($path, $line)

Открывает файл в редакторе из .config на указанной строке. По умолчанию использует `vscodium %p:%l`.

Файл .config.pm:
```perl
package config;

config_module 'Aion::Fs' => {

lib/Aion/Fs.pm  view on Meta::CPAN

=over

=item * https://en.wikipedia.org/wiki/Path_(computing)

=back

Modules for determining the OS, and therefore determining what file paths are in the OS:

=over

=item * C<$^O> – superglobal variable with the name of the current OS.

=item * L<Devel::CheckOS>, L<Perl::OSType> – define the OS.

=item * L<Devel::AssertOS> – prohibits the use of the module outside the specified OS.

=item * L<System::Info> – information about the OS, its version, distribution, CPU and host.

=back

Parts of file paths are distinguished:

lib/Aion/Fs.pm  view on Meta::CPAN

Used in filters of the C<find> function.

=head3 See also

=over

=item * L<File::Wildcard>.

=item * L<String::Wildcard::Bash>.

=item * L<Text::Glob> – C<glob_to_regex("*.{pm,pl}")>.

=back

=head2 goto_editor ($path, $line)

Opens the file in the editor from .config at the specified line. Defaults to C<vscodium %p:%l>.

.config.pm file:

	package config;

t/aion/fs.t  view on Meta::CPAN

local ($::_g0 = do {wildcard "*.{pm,pl}"}, $::_e0 = '(?^usn:^.*?\.(pm|pl)$)'); ::ok $::_g0 eq $::_e0, 'wildcard "*.{pm,pl}"  # \> (?^usn:^.*?\.(pm|pl)$)' or ::diag ::_string_diff($::_g0, $::_e0); undef $::_g0; undef $::_e0;
local ($::_g0 = do {wildcard "?_??_**"}, $::_e0 = '(?^usn:^._[^/]_[^/]*?$)'); ::ok $::_g0 eq $::_e0, 'wildcard "?_??_**"  # \> (?^usn:^._[^/]_[^/]*?$)' or ::diag ::_string_diff($::_g0, $::_e0); undef $::_g0; undef $::_e0;

# 
# Используется в фильтрах функции `find`.
# 
# ### See also
# 
# * [File::Wildcard](https://metacpan.org/pod/File::Wildcard).
# * [String::Wildcard::Bash](https://metacpan.org/pod/String::Wildcard::Bash).
# * [Text::Glob](https://metacpan.org/pod/Text::Glob) – `glob_to_regex("*.{pm,pl}")`.
# 
# ## goto_editor ($path, $line)
# 
# Открывает файл в редакторе из .config на указанной строке. По умолчанию использует `vscodium %p:%l`.
# 
# Файл .config.pm:
#@> .config.pm
#>> package config;
#>> 
#>> config_module 'Aion::Fs' => {



( run in 1.429 second using v1.01-cache-2.11-cpan-5735350b133 )