id = "cocoapods" name = "CocoaPods" homepage = "https://cocoapods.org" description = "A dependency manager for Swift and Objective-C Cocoa projects." icon = "theSVG:cocoapods" executables = ["pod"] # Xcode toolchain only. platforms = ["macos"] [dotfiles] # CocoaPods' own lib/cocoapods/config.rb: # def home_dir; Pathname.new(ENV['CP_HOME_DIR'] || '~/.cocoapods').expand_path; end # def user_settings_file; home_dir + 'config.yaml'; end # so the per-user settings are ~/.cocoapods/config.yaml. paths = ["~/.cocoapods/config.yaml"] # Same file: repos_dir is home_dir + 'repos' (the spec repo checkouts, gigabytes # of clone), templates_dir is home_dir + 'templates', and cache_root defaults to # ~/Library/Caches/CocoaPods. Checkouts and caches, not settings. exclude = [ "~/.cocoapods/repos/", "~/.cocoapods/templates/", "~/Library/Caches/CocoaPods/", ] # cocoapods-trunk's lib/pod/command/trunk/register.rb saves the session token # with `netrc['trunk.cocoapods.org'] = @email, token`, i.e. into ~/.netrc. # Trunk accounts have no password, only these per-computer session tokens, and # the whole file is login names and passwords. secret = ["~/.netrc"] # Read per command; no daemon holds it open. side_effect = false [commands] format = 1 label = "CocoaPods" description = "Install dependencies, search pods, or generate a Podfile." quality = "ai-draft" base = "fig:pod" parser = { end_of_options = "--", interleave = "permute", long_equals = false, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/pod.ts" license = "MIT" [[commands.subcommand]] path = ["install"] label = "Install dependencies" description = "Install project dependencies according to the Podfile.lock." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/pod.ts" license = "MIT" [[commands.subcommand.field]] id = "repo_update" label = "Update spec repos first" type = "boolean" option = ["--repo-update"] sources = ["fig"] [[commands.subcommand.field]] id = "deployment" label = "Deployment mode" description = "Disallow any changes to the Podfile or Podfile.lock." type = "boolean" option = ["--deployment"] sources = ["fig"] [[commands.subcommand.field]] id = "clean_install" label = "Clean install" description = "Ignore the project cache and force a full installation." type = "boolean" option = ["--clean-install"] sources = ["fig"] [[commands.subcommand.field]] id = "project_directory" label = "Project directory" type = "path" option = ["--project-directory"] path = { kind = "directory", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.task]] id = "install" label = "Install" fields = ["repo_update", "project_directory"] required = [] [[commands.subcommand.task]] id = "ci" label = "CI install" set = { deployment = [true] } fields = ["deployment", "repo_update", "project_directory"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["project_directory", "repo_update"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["deployment", "clean_install"] [[commands.subcommand]] path = ["search"] label = "Search pods" description = "Search for pods by name or regular expression." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/pod.ts" license = "MIT" [[commands.subcommand.field]] id = "query" label = "Query" type = "string" position = 0 sources = ["fig"] [[commands.subcommand.field]] id = "regex" label = "Regular expression" type = "boolean" option = ["--regex"] sources = ["fig"] [[commands.subcommand.field]] id = "simple" label = "Search by name only" type = "boolean" option = ["--simple"] sources = ["fig"] [[commands.subcommand.field]] id = "stats" label = "Show stats" type = "boolean" option = ["--stats"] sources = ["fig"] [[commands.subcommand.field]] id = "ios" label = "iOS only" type = "boolean" option = ["--ios"] sources = ["fig"] [[commands.subcommand.field]] id = "osx" label = "macOS only" type = "boolean" option = ["--osx"] sources = ["fig"] [[commands.subcommand.field]] id = "no_pager" label = "No pager" type = "boolean" option = ["--no-pager"] sources = ["fig"] [[commands.subcommand.task]] id = "search" label = "Search" fields = ["query", "simple", "ios", "osx", "no_pager"] required = ["query"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["query", "simple", "regex"] [[commands.subcommand.group]] id = "advanced" label = "Filters" fields = ["ios", "osx", "stats", "no_pager"] [[commands.subcommand]] path = ["init"] label = "Generate a Podfile" description = "Generate a Podfile for the current directory." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/pod.ts" license = "MIT" [[commands.subcommand.field]] id = "xcodeproj" label = "Xcode project" type = "path" position = 0 path = { kind = "any", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.task]] id = "init" label = "Generate Podfile" fields = ["xcodeproj"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["xcodeproj"]