fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
7360deee7
master
1set -l subcommands apk files manifest dex resources 2 3set -l apk_subcommands summary file-size download-size features compare 4set -l files_subcommands list cat 5set -l manifest_subcommands print application-id version-name version-code min-sdk target-sdk permissions debuggable 6set -l dex_subcommands list references packages code 7set -l resources_subcommands package configs value name xml 8 9complete -f -n"not __fish_seen_subcommand_from $subcommands " -c apkanalyzer -a apk -d'Analyze APK file attributes' 10complete -f -n"not __fish_seen_subcommand_from $subcommands " -c apkanalyzer -a files -d'Analyze the files inside the APK file' 11complete -f -n"not __fish_seen_subcommand_from $subcommands " -c apkanalyzer -a manifest -d'Analyze the contents of the manifest file' 12complete -f -n"not __fish_seen_subcommand_from $subcommands " -c apkanalyzer -a dex -d'Analyze the DEX files inside the APK file' 13complete -f -n"not __fish_seen_subcommand_from $subcommands " -c apkanalyzer -a resources -d'View text, image and string resources' 14 15# global-option 16complete -n"not __fish_seen_subcommand_from $apk_subcommands $files_subcommands $manifest_subcommands $dex_subcommands $resources_subcommands " -c apkanalyzer -s h -l human-readable -d'Human-readable output' 17 18# apk 19complete -f -n"__fish_seen_subcommand_from apk; and not __fish_seen_subcommand_from $apk_subcommands " -c apkanalyzer -a summary -d'Prints the application ID, version code, and version name' 20complete -f -n"__fish_seen_subcommand_from apk; and not __fish_seen_subcommand_from $apk_subcommands " -c apkanalyzer -a file-size -d'Prints the total file size of the APK' 21complete -f -n"__fish_seen_subcommand_from apk; and not __fish_seen_subcommand_from $apk_subcommands " -c apkanalyzer -a download-size -d'Prints an estimate of the download size of the APK' 22complete -f -n"__fish_seen_subcommand_from apk; and not __fish_seen_subcommand_from $apk_subcommands " -c apkanalyzer -a features -d'Prints features used by the APK that trigger Play Store filtering' 23complete -f -n"__fish_seen_subcommand_from apk; and not __fish_seen_subcommand_from $apk_subcommands " -c apkanalyzer -a compare -d'Compares the sizes of apk-file and apk-file' 24# apk options 25complete -n'__fish_seen_subcommand_from apk; and __fish_seen_subcommand_from features' -c apkanalyzer -l not-required -d'Include features marked as not required in the output' 26complete -n'__fish_seen_subcommand_from apk; and __fish_seen_subcommand_from compare' -c apkanalyzer -l different-only -d'Prints directories and files with differences' 27complete -n'__fish_seen_subcommand_from apk; and __fish_seen_subcommand_from compare' -c apkanalyzer -l files-only -d'Does not print directory entries' 28complete -n'__fish_seen_subcommand_from apk; and __fish_seen_subcommand_from compare' -c apkanalyzer -l patch-size -d'Shows an estimate of the file-by-file patch instead of a raw difference' 29 30complete -n"__fish_seen_subcommand_from apk; and __fish_seen_subcommand_from $apk_subcommands " -c apkanalyzer -ka'(__fish_complete_suffix .apk)' 31 32# files 33complete -f -n"__fish_seen_subcommand_from files; and not __fish_seen_subcommand_from $apk_subcommands " -c apkanalyzer -a list -d'Lists all files in the APK' 34complete -f -n"__fish_seen_subcommand_from files; and not __fish_seen_subcommand_from $apk_subcommands " -c apkanalyzer -a cat -d'Prints out the file contents' 35# files options 36complete -n'__fish_seen_subcommand_from files; and __fish_seen_subcommand_from list' -c apkanalyzer -l file -d'Specify a path inside the APK' -r 37 38complete -n"__fish_seen_subcommand_from files; and __fish_seen_subcommand_from $files_subcommands " -c apkanalyzer -ka'(__fish_complete_suffix .apk)' 39 40# manifest 41complete -f -n"__fish_seen_subcommand_from manifest; and not __fish_seen_subcommand_from $manifest_subcommands " -c apkanalyzer -a print -d'Prints the APK manifest in XML format' 42complete -f -n"__fish_seen_subcommand_from manifest; and not __fish_seen_subcommand_from $manifest_subcommands " -c apkanalyzer -a application-id -d'Prints the application ID value' 43complete -f -n"__fish_seen_subcommand_from manifest; and not __fish_seen_subcommand_from $manifest_subcommands " -c apkanalyzer -a version-name -d'Prints the version name value' 44complete -f -n"__fish_seen_subcommand_from manifest; and not __fish_seen_subcommand_from $manifest_subcommands " -c apkanalyzer -a version-code -d'Prints the version code value' 45complete -f -n"__fish_seen_subcommand_from manifest; and not __fish_seen_subcommand_from $manifest_subcommands " -c apkanalyzer -a min-sdk -d'Prints the minimum SDK version' 46complete -f -n"__fish_seen_subcommand_from manifest; and not __fish_seen_subcommand_from $manifest_subcommands " -c apkanalyzer -a target-sdk -d'Prints the target SDK version' 47complete -f -n"__fish_seen_subcommand_from manifest; and not __fish_seen_subcommand_from $manifest_subcommands " -c apkanalyzer -a permissions -d'Prints the list of permissions' 48complete -f -n"__fish_seen_subcommand_from manifest; and not __fish_seen_subcommand_from $manifest_subcommands " -c apkanalyzer -a debuggable -d'Prints whether the APK is debuggable' 49 50complete -n"__fish_seen_subcommand_from manifest; and __fish_seen_subcommand_from $manifest_subcommands " -c apkanalyzer -ka'(__fish_complete_suffix .apk)' 51 52# dex 53complete -f -n"__fish_seen_subcommand_from dex; and not __fish_seen_subcommand_from $dex_subcommands " -c apkanalyzer -a list -d'Prints a list of the DEX files in the APK' 54complete -f -n"__fish_seen_subcommand_from dex; and not __fish_seen_subcommand_from $dex_subcommands " -c apkanalyzer -a references -d'Prints the number of method references in the specified DEX files' 55complete -f -n"__fish_seen_subcommand_from dex; and not __fish_seen_subcommand_from $dex_subcommands " -c apkanalyzer -a packages -d'Prints the class tree from DEX' 56complete -f -n"__fish_seen_subcommand_from dex; and not __fish_seen_subcommand_from $dex_subcommands " -c apkanalyzer -a code -d'Prints the bytecode of a class or method in smali format' 57# dex options 58complete -n'__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from references' -c apkanalyzer -l files -d'Indicate specific files that you want to include' -r 59complete -n'__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from packages' -c apkanalyzer -l defined-only -d'Includes only classes defined in the APK in the output' 60complete -n'__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from packages' -c apkanalyzer -l files -d'Specifies the DEX file names to include' 61complete -n'__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from packages' -c apkanalyzer -l proguard-folder -d'Specifies the Proguard output folder to search for mappings' 62complete -n'__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from packages' -c apkanalyzer -l proguard-mapping -d'Specifies the Proguard mapping file' 63complete -n'__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from packages' -c apkanalyzer -l proguard-seeds -d'Specifies the Proguard seeds file' 64complete -n'__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from packages' -c apkanalyzer -l proguard-usage -d'Specifies the Proguard usage file' 65complete -n'__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from packages' -c apkanalyzer -l show-removed -d'Shows classes and members that were removed by Proguard' 66complete -n'__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from code' -c apkanalyzer -l class -d'Specifies the class name to print' 67complete -n'__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from code' -c apkanalyzer -l method -d'Specifies the method name to print' 68 69complete -n"__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from $dex_subcommands " -c apkanalyzer -ka'(__fish_complete_suffix .apk)' 70complete -n'__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from code' -c apkanalyzer -ka'(__fish_complete_suffix .class)' 71 72# resources 73complete -f -n"__fish_seen_subcommand_from resources; and not __fish_seen_subcommand_from $resources_subcommands " -c apkanalyzer -a packages -d'Prints a list of the packages that are defined in the resources table' 74complete -f -n"__fish_seen_subcommand_from resources; and not __fish_seen_subcommand_from $resources_subcommands " -c apkanalyzer -a configs -d'Prints a list of configurations for the specified type' 75complete -f -n"__fish_seen_subcommand_from resources; and not __fish_seen_subcommand_from $resources_subcommands " -c apkanalyzer -a value -d'Prints the value of the resource specified by config, name, and type' 76complete -f -n"__fish_seen_subcommand_from resources; and not __fish_seen_subcommand_from $resources_subcommands " -c apkanalyzer -a names -d'Prints a list of resource names for a configuration and type' 77complete -f -n"__fish_seen_subcommand_from resources; and not __fish_seen_subcommand_from $resources_subcommands " -c apkanalyzer -a xml -d'Prints the human-readable form of a binary XML file' 78# resources options 79complete -n'__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from configs' -c apkanalyzer -l type -d'Specifies the resource type to print' -r 80complete -n'__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from configs' -c apkanalyzer -l packages -d'Specifies the packages to print' -r 81complete -n'__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from value' -c apkanalyzer -l config -d'Specifies the configuration to print' -r 82complete -n'__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from value' -c apkanalyzer -l name -d'Specifies the resource name to print' -r 83complete -n'__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from value' -c apkanalyzer -l type -d'Specifies the resource type to print' -r 84complete -n'__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from value' -c apkanalyzer -l packages -d'Specifies the packages to print' -r 85complete -n'__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from names' -c apkanalyzer -l config -d'Specifies the configuration to print' -r 86complete -n'__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from names' -c apkanalyzer -l type -d'Specifies the resource type to print' -r 87complete -n'__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from names' -c apkanalyzer -l packages -d'Specifies the packages to print' -r 88complete -n'__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from xml' -c apkanalyzer -l file -d'Specifies the file to print' -r 89 90complete -n"__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from $resources_subcommands " -c apkanalyzer -ka'(__fish_complete_suffix .apk)'