Add completion spec: nmap#263
Merged
Merged
Conversation
Adds command completion support for nmap (network mapper/scanner) with: - Full JSON spec covering ~80 options across all categories: target specification, host discovery, scan techniques, port specification, service/version detection, OS detection, NSE scripting, timing/performance, firewall evasion, output, and misc. - network_interfaces generator for -e flag (cross-platform: Linux /sys/class/net, macOS ifconfig -l, fallback to ifconfig parsing) - nse_scripts generator for --script and --script-help flags (lists .nse files from common nmap data directories plus built-in script categories) - Static suggestions for timing templates (-T), version intensity, debug levels, IP options, and nsock engines Co-Authored-By: Oz <oz-agent@warp.dev>
Contributor
Author
Generator Verification Screenshots
|
APP-3962 [Auto] Add nmap completions
Add command completions for Fish shell reference implementation: https://github.com/fish-shell/fish-shell/blob/master/share/completions/nmap.fish |
vkodithala
approved these changes
Apr 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Adds command completion support for
nmap(network mapper/scanner).Changes
JSON Spec (
command-signatures/json/nmap.json)Comprehensive completion spec covering ~80 options across all nmap categories:
-iL,-iR,--exclude,--excludefile-sL,-sn,-Pn,-PS/-PA/-PU/-PY,-PE/-PP/-PM,-PO,-PR,--traceroute,-n/-R,--dns-servers, etc.-sS/-sT/-sA/-sW/-sM(TCP),-sU(UDP),-sN/-sF/-sX,-sY/-sZ(SCTP),-sI,-sO,-b,--scanflags-p,--exclude-ports,-F,-r,--top-ports,--port-ratio-sV,--version-intensity,--version-light,--version-all,--allports-O,--osscan-limit,--osscan-guess/--fuzzy,--max-os-tries-sC,--script,--script-args,--script-help,--script-updatedb-T(with named templates),--min/max-hostgroup,--min/max-parallelism, RTT timeouts,--min/max-rate,--nsock-engine-f,--mtu,-D,-S,-e,-g/--source-port,--proxies,--ip-options,--ttl,--spoof-mac,--badsum-oN/-oX/-oS/-oG/-oA,-v,-d,--reason,--open,--resume,--stylesheet-6,-A,--datadir,--send-eth/--send-ip,--privileged/--unprivileged,-V/--version,-h/--helpGenerators (
command-signatures/src/generators/nmap.rs)network_interfaces(for-eflag): Cross-platform — uses/sys/class/neton Linux,ifconfig -lon macOS, falls back to parsingifconfigoutputnse_scripts(for--scriptand--script-helpflags): Lists.nsefiles from common nmap data directories (/usr/share/nmap/scripts,/usr/local/share/nmap/scripts,/opt/homebrew/share/nmap/scripts) plus built-in script categories (all, auth, broadcast, brute, default, discovery, dos, exploit, external, fuzzer, intrusive, malware, safe, version, vuln)Static Suggestions
-T): 0-5 with named aliases (paranoid, sneaky, polite, normal, aggressive, insane)--version-intensity): 0-9-d): 0-9--ip-options): S, R, L, T, U--nsock-engine): epoll, kqueue, poll, selectValidation
npm run format✅script/presubmitpasses (54 tests, 0 failures, clippy clean) ✅Conversation: https://staging.warp.dev/conversation/016e0996-5b38-4536-9d06-ca243a821844
This PR was generated with Oz.