LINUX.ORG.RU

История изменений

Исправление lbvf50txt, (текущая версия) :

В проекте gh есть три файла с расширением *.proto.mock.go. Сейчас я попробую их найти при помощи fdfind -e 'proto.mock.go'.

$ fdfind -e 'proto.mock.go'
internal/codespaces/rpc/codespace/codespace_host_service.v1.proto.mock.go
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.proto.mock.go
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.proto.mock.go

$ fdfind -e proto.mock.go
internal/codespaces/rpc/codespace/codespace_host_service.v1.proto.mock.go
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.proto.mock.go
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.proto.mock.go

Все прекрасно работает fdfind -e 'proto.mock.go' и
fdfind -e proto.mock.go.


Анализ файлов проекта gh при помощи Nushell.

# Nushell select files with doubled extensions. From the gh project.
# https://github.com/cli/cli
~/tmp/cli> let files = ls ...(glob **/*) | uniq
~/tmp/cli> let files = $files |  where name !~ '.*\.git.*' | where type == file 
~/tmp/cli> let files = $files | where name =~ '\.[a-z0-9]{2,7}\.[a-z0-9]{2,7}$'
~/tmp/cli> let files = $files | get name | each { str substring 25..-1}
~/tmp/cli> $files | wrap name | where name =~ 'proto\.mock\.go$'

╭───┬──────────────────────────────────────────────────────────────────────────────╮
│ # │                                     name                                     │
├───┼──────────────────────────────────────────────────────────────────────────────┤
│ 0 │ internal/codespaces/rpc/codespace/codespace_host_service.v1.proto.mock.go    │
│ 1 │ internal/codespaces/rpc/ssh/ssh_server_host_service.v1.proto.mock.go         │
│ 2 │ internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.proto.mock.go │
╰───┴──────────────────────────────────────────────────────────────────────────────╯

Исправление lbvf50txt, :

В проекте gh есть три файла с расширением *.proto.mock.go. Сейчас я попробую их найти при помощи fdfind -e 'proto.mock.go'.

$ fdfind -e 'proto.mock.go'
internal/codespaces/rpc/codespace/codespace_host_service.v1.proto.mock.go
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.proto.mock.go
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.proto.mock.go

$ fdfind -e proto.mock.go
internal/codespaces/rpc/codespace/codespace_host_service.v1.proto.mock.go
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.proto.mock.go
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.proto.mock.go

Все прекрасно работает fdfind -e 'proto.mock.go' и
fdfind -e proto.mock.go.


Анализ файлов проекта gh при помощи Nushell.

# Nushell select files with doubled extensions. From the gh project.
# https://github.com/cli/cli
~/tmp/cli> let files = ls ...(glob **/*) | uniq
~/tmp/cli> let files = $files |  where name !~ '.*\.git.*' | where type == file 
~/tmp/cli> let files = $files | where name =~ '\.[a-z0-9]{2,7}\.[a-z0-9]{2,7}$'
~/tmp/cli> let files = $files | get name | each { str substring 25..-1}
~/tmp/cli> $files | wrap name | where name =~ 'proto\.mock\.go$'

╭───┬──────────────────────────────────────────────────────────────────────────────╮
│ # │                                     name                                     │
├───┼──────────────────────────────────────────────────────────────────────────────┤
│ 0 │ internal/codespaces/rpc/codespace/codespace_host_service.v1.proto.mock.go    │
│ 1 │ internal/codespaces/rpc/ssh/ssh_server_host_service.v1.proto.mock.go         │
│ 2 │ internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.proto.mock.go │
╰───┴──────────────────────────────────────────────────────────────────────────────╯

Исходная версия lbvf50txt, :

В проекте gh есть три файла с расширением *.proto.mock.go. Сейчас я попробую их найти при помощи fdfind -e 'proto.mock.go'.

$ fdfind -e 'proto.mock.go'
internal/codespaces/rpc/codespace/codespace_host_service.v1.proto.mock.go
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.proto.mock.go
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.proto.mock.go

$ fdfind -e proto.mock.go
internal/codespaces/rpc/codespace/codespace_host_service.v1.proto.mock.go
internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.proto.mock.go
internal/codespaces/rpc/ssh/ssh_server_host_service.v1.proto.mock.go

Все прекрасно работает fdfind -e 'proto.mock.go' и
fdfind -e proto.mock.go.


Анализ файлов проекта gh при помощи Nushell.

# Nushell select files with doubled extensions. From the gh project.
# https://github.com/cli/cli
~/tmp/cli> let files = ls ...(glob **/*) | uniq
~/tmp/cli> let files = $files |  where name !~ '.*\.git.*' | where type == file 
~/tmp/cli> let files = $files | where name =~ '\.[a-z0-9]{2,7}\.[a-z0-9]{2,7}$
~/tmp/cli> let files = $files | get name | each { str substring 25..-1}
~/tmp/cli> $files | wrap name | where name =~ 'proto\.mock\.go$'

╭───┬──────────────────────────────────────────────────────────────────────────────╮
│ # │                                     name                                     │
├───┼──────────────────────────────────────────────────────────────────────────────┤
│ 0 │ internal/codespaces/rpc/codespace/codespace_host_service.v1.proto.mock.go    │
│ 1 │ internal/codespaces/rpc/ssh/ssh_server_host_service.v1.proto.mock.go         │
│ 2 │ internal/codespaces/rpc/jupyter/jupyter_server_host_service.v1.proto.mock.go │
╰───┴──────────────────────────────────────────────────────────────────────────────╯