Cli/ref/mw codesearch search

From mediawiki.org
< Cli‎ | ref

mw codesearch search[edit]

Search using codesearch

mw codesearch search [search-text] [flags]

Examples[edit]

search addshore
search --type extensions --repos "Extension:Wikibase" addshore
search --files ".*\.md" addshore
search --output ack --files ".*\.md" addshore

Options[edit]

      --exclude-files string   Exclude files matching this pattern
      --files string           Search only in files matching this pattern
  -f, --filter strings         Filter output based on conditions provided
      --format string          Format the specified output
  -i, --ignore-case            Ignore case in search
      --output string          How to output the results json, template, table, ack (default "table")
      --repos strings          Search only in these repositories
  -t, --type string            Type of search to perform: search|core|extensions|skins|things|bundeled|deployed|libraries|operations|puppet|ooui|milkshake|pywikibot|services|analytics (default "search")

Options inherited from parent commands[edit]

      --help             Help for this command
      --no-interaction   Do not ask any interactive questions
  -v, --verbose count    Increase output verbosity. Example: --verbose=2 or -vv

SEE ALSO[edit]