├── .cspell └── custom-dictionary.txt ├── .github ├── FUNDING.yml └── workflows │ ├── build_and_release.yml │ └── test_and_report.yml ├── .gitignore ├── LICENSE ├── README.md ├── cmd └── gh-gr │ └── main.go ├── cspell.config.yaml ├── doc └── screenshot.png ├── go.mod ├── go.sum ├── pkg ├── commands │ ├── command_cleanup.go │ ├── command_edit.go │ ├── command_export.go │ ├── command_import.go │ ├── command_init.go │ ├── command_pr.go │ ├── command_pr_close.go │ ├── command_pr_reopen.go │ ├── command_pull.go │ ├── command_push.go │ ├── command_remove.go │ ├── command_root.go │ ├── command_status.go │ ├── command_update.go │ ├── command_version.go │ ├── command_view.go │ ├── commands_util.go │ ├── operation_context.go │ ├── operation_loop.go │ ├── operation_status.go │ └── package_doc.go ├── configfile │ ├── config_encoders.go │ ├── configuration.go │ ├── configuration_util.go │ ├── package_doc.go │ ├── profile.go │ ├── pull_request.go │ └── repository.go ├── extras │ ├── extras.go │ └── git.aliases.json ├── restclient │ ├── api_endpoint.go │ ├── api_endpoint_test.go │ ├── check_rate_limit.go │ ├── package_doc.go │ ├── request_path.go │ ├── request_path_test.go │ ├── resources │ │ ├── advanced_securirty.go │ │ ├── branch.go │ │ ├── href.go │ │ ├── label.go │ │ ├── license.go │ │ ├── milestone.go │ │ ├── organization.go │ │ ├── owner.go │ │ ├── package_doc.go │ │ ├── parent.go │ │ ├── permissions.go │ │ ├── plan.go │ │ ├── pull_request.go │ │ ├── pull_request_links.go │ │ ├── rate.go │ │ ├── rate_limit.go │ │ ├── rate_resources.go │ │ ├── repository.go │ │ ├── search_result.go │ │ ├── secret_scanning.go │ │ ├── secret_scanning_push_protection.go │ │ ├── security_and_analysis.go │ │ ├── source.go │ │ ├── team.go │ │ ├── template_repository.go │ │ └── user.go │ ├── rest_client.go │ ├── rest_client_test.go │ ├── rest_client_util.go │ ├── rest_client_util_test.go │ ├── test │ │ └── api │ │ │ └── v3 │ │ │ ├── organizations.json │ │ │ ├── orgs │ │ │ ├── github.json │ │ │ └── github │ │ │ │ └── repos.json │ │ │ ├── rate_limit.json │ │ │ ├── repos │ │ │ └── octocat │ │ │ │ └── Hello-World │ │ │ │ ├── pulls.json │ │ │ │ └── pulls │ │ │ │ └── 1347.json │ │ │ ├── search │ │ │ └── issues.json │ │ │ ├── user.json │ │ │ └── user │ │ │ ├── orgs.json │ │ │ └── repos.json │ └── throttled_transport.go └── util │ ├── ansi_codes.go │ ├── colored_yaml_encoder.go │ ├── concurrency.go │ ├── environ.go │ ├── logger.go │ ├── package_doc.go │ ├── path.go │ ├── path_test.go │ ├── pattern_list.go │ ├── pattern_list_test.go │ ├── process_lock_file.go │ ├── progressbar.go │ ├── table_printer.go │ └── terminal.go ├── scripts └── build.sh └── vendor ├── code.gitea.io └── sdk │ └── gitea │ ├── LICENSE │ ├── admin_cron.go │ ├── admin_org.go │ ├── admin_repo.go │ ├── admin_user.go │ ├── agent.go │ ├── agent_windows.go │ ├── attachment.go │ ├── client.go │ ├── doc.go │ ├── fork.go │ ├── git_blob.go │ ├── git_hook.go │ ├── helper.go │ ├── hook.go │ ├── hook_validate.go │ ├── httpsign.go │ ├── issue.go │ ├── issue_comment.go │ ├── issue_label.go │ ├── issue_milestone.go │ ├── issue_reaction.go │ ├── issue_stopwatch.go │ ├── issue_subscription.go │ ├── issue_template.go │ ├── issue_timeline.go │ ├── issue_tracked_time.go │ ├── list_options.go │ ├── notifications.go │ ├── oauth2.go │ ├── org.go │ ├── org_action.go │ ├── org_member.go │ ├── org_team.go │ ├── package.go │ ├── pull.go │ ├── pull_review.go │ ├── release.go │ ├── repo.go │ ├── repo_action.go │ ├── repo_action_variable.go │ ├── repo_branch.go │ ├── repo_branch_protection.go │ ├── repo_collaborator.go │ ├── repo_commit.go │ ├── repo_compare.go │ ├── repo_file.go │ ├── repo_key.go │ ├── repo_migrate.go │ ├── repo_mirror.go │ ├── repo_refs.go │ ├── repo_stars.go │ ├── repo_tag.go │ ├── repo_tag_protection.go │ ├── repo_team.go │ ├── repo_template.go │ ├── repo_topics.go │ ├── repo_transfer.go │ ├── repo_tree.go │ ├── repo_watch.go │ ├── secret.go │ ├── settings.go │ ├── status.go │ ├── user.go │ ├── user_app.go │ ├── user_email.go │ ├── user_follow.go │ ├── user_gpgkey.go │ ├── user_key.go │ ├── user_search.go │ ├── user_settings.go │ └── version.go ├── dario.cat └── mergo │ ├── .deepsource.toml │ ├── .gitignore │ ├── .travis.yml │ ├── CODE_OF_CONDUCT.md │ ├── CONTRIBUTING.md │ ├── FUNDING.json │ ├── LICENSE │ ├── README.md │ ├── SECURITY.md │ ├── doc.go │ ├── map.go │ ├── merge.go │ └── mergo.go ├── github.com ├── 42wim │ └── httpsig │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── algorithms.go │ │ ├── digest.go │ │ ├── httpsig.go │ │ ├── signing.go │ │ └── verifying.go ├── AlecAivazis │ └── survey │ │ └── v2 │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── confirm.go │ │ ├── core │ │ ├── template.go │ │ └── write.go │ │ ├── editor.go │ │ ├── filter.go │ │ ├── input.go │ │ ├── multiline.go │ │ ├── multiselect.go │ │ ├── password.go │ │ ├── renderer.go │ │ ├── select.go │ │ ├── survey.go │ │ ├── terminal │ │ ├── LICENSE.txt │ │ ├── README.md │ │ ├── buffered_reader.go │ │ ├── cursor.go │ │ ├── cursor_windows.go │ │ ├── display.go │ │ ├── display_posix.go │ │ ├── display_windows.go │ │ ├── error.go │ │ ├── output.go │ │ ├── output_windows.go │ │ ├── runereader.go │ │ ├── runereader_bsd.go │ │ ├── runereader_linux.go │ │ ├── runereader_posix.go │ │ ├── runereader_ppc64le.go │ │ ├── runereader_windows.go │ │ ├── sequences.go │ │ ├── stdio.go │ │ ├── syscall_windows.go │ │ └── terminal.go │ │ ├── transform.go │ │ └── validate.go ├── Masterminds │ └── semver │ │ └── v3 │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE.txt │ │ ├── Makefile │ │ ├── README.md │ │ ├── SECURITY.md │ │ ├── collection.go │ │ ├── constraints.go │ │ ├── doc.go │ │ └── version.go ├── Microsoft │ └── go-winio │ │ ├── .gitattributes │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── CODEOWNERS │ │ ├── LICENSE │ │ ├── README.md │ │ ├── SECURITY.md │ │ ├── backup.go │ │ ├── doc.go │ │ ├── ea.go │ │ ├── file.go │ │ ├── fileinfo.go │ │ ├── hvsock.go │ │ ├── internal │ │ ├── fs │ │ │ ├── doc.go │ │ │ ├── fs.go │ │ │ ├── security.go │ │ │ └── zsyscall_windows.go │ │ ├── socket │ │ │ ├── rawaddr.go │ │ │ ├── socket.go │ │ │ └── zsyscall_windows.go │ │ └── stringbuffer │ │ │ └── wstring.go │ │ ├── pipe.go │ │ ├── pkg │ │ └── guid │ │ │ ├── guid.go │ │ │ ├── guid_nonwindows.go │ │ │ ├── guid_windows.go │ │ │ └── variant_string.go │ │ ├── privilege.go │ │ ├── reparse.go │ │ ├── sd.go │ │ ├── syscall.go │ │ └── zsyscall_windows.go ├── ProtonMail │ └── go-crypto │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── PATENTS │ │ ├── bitcurves │ │ └── bitcurve.go │ │ ├── brainpool │ │ ├── brainpool.go │ │ └── rcurve.go │ │ ├── eax │ │ ├── eax.go │ │ ├── eax_test_vectors.go │ │ └── random_vectors.go │ │ ├── internal │ │ └── byteutil │ │ │ └── byteutil.go │ │ ├── ocb │ │ ├── ocb.go │ │ ├── random_vectors.go │ │ ├── rfc7253_test_vectors_suite_a.go │ │ └── rfc7253_test_vectors_suite_b.go │ │ └── openpgp │ │ ├── aes │ │ └── keywrap │ │ │ └── keywrap.go │ │ ├── armor │ │ ├── armor.go │ │ └── encode.go │ │ ├── canonical_text.go │ │ ├── ecdh │ │ └── ecdh.go │ │ ├── ecdsa │ │ └── ecdsa.go │ │ ├── ed25519 │ │ └── ed25519.go │ │ ├── ed448 │ │ └── ed448.go │ │ ├── eddsa │ │ └── eddsa.go │ │ ├── elgamal │ │ └── elgamal.go │ │ ├── errors │ │ └── errors.go │ │ ├── hash.go │ │ ├── internal │ │ ├── algorithm │ │ │ ├── aead.go │ │ │ ├── cipher.go │ │ │ └── hash.go │ │ ├── ecc │ │ │ ├── curve25519.go │ │ │ ├── curve_info.go │ │ │ ├── curves.go │ │ │ ├── ed25519.go │ │ │ ├── ed448.go │ │ │ ├── generic.go │ │ │ └── x448.go │ │ └── encoding │ │ │ ├── encoding.go │ │ │ ├── mpi.go │ │ │ └── oid.go │ │ ├── key_generation.go │ │ ├── keys.go │ │ ├── keys_test_data.go │ │ ├── packet │ │ ├── aead_config.go │ │ ├── aead_crypter.go │ │ ├── aead_encrypted.go │ │ ├── compressed.go │ │ ├── config.go │ │ ├── config_v5.go │ │ ├── encrypted_key.go │ │ ├── literal.go │ │ ├── marker.go │ │ ├── notation.go │ │ ├── ocfb.go │ │ ├── one_pass_signature.go │ │ ├── opaque.go │ │ ├── packet.go │ │ ├── packet_sequence.go │ │ ├── packet_unsupported.go │ │ ├── padding.go │ │ ├── private_key.go │ │ ├── private_key_test_data.go │ │ ├── public_key.go │ │ ├── public_key_test_data.go │ │ ├── reader.go │ │ ├── recipient.go │ │ ├── signature.go │ │ ├── symmetric_key_encrypted.go │ │ ├── symmetrically_encrypted.go │ │ ├── symmetrically_encrypted_aead.go │ │ ├── symmetrically_encrypted_mdc.go │ │ ├── userattribute.go │ │ └── userid.go │ │ ├── read.go │ │ ├── read_write_test_data.go │ │ ├── s2k │ │ ├── s2k.go │ │ ├── s2k_cache.go │ │ └── s2k_config.go │ │ ├── write.go │ │ ├── x25519 │ │ └── x25519.go │ │ └── x448 │ │ └── x448.go ├── aymanbagabas │ └── go-osc52 │ │ └── v2 │ │ ├── LICENSE │ │ ├── README.md │ │ └── osc52.go ├── blang │ └── semver │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── json.go │ │ ├── package.json │ │ ├── range.go │ │ ├── semver.go │ │ ├── sort.go │ │ └── sql.go ├── charmbracelet │ ├── colorprofile │ │ ├── .golangci.yml │ │ ├── .goreleaser.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── doc.go │ │ ├── env.go │ │ ├── env_other.go │ │ ├── env_windows.go │ │ ├── profile.go │ │ └── writer.go │ ├── lipgloss │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── .goreleaser.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── Taskfile.yaml │ │ ├── align.go │ │ ├── ansi_unix.go │ │ ├── ansi_windows.go │ │ ├── borders.go │ │ ├── color.go │ │ ├── get.go │ │ ├── join.go │ │ ├── position.go │ │ ├── ranges.go │ │ ├── renderer.go │ │ ├── runes.go │ │ ├── set.go │ │ ├── size.go │ │ ├── style.go │ │ ├── unset.go │ │ └── whitespace.go │ └── x │ │ ├── ansi │ │ ├── LICENSE │ │ ├── ansi.go │ │ ├── ascii.go │ │ ├── background.go │ │ ├── c0.go │ │ ├── c1.go │ │ ├── charset.go │ │ ├── clipboard.go │ │ ├── color.go │ │ ├── ctrl.go │ │ ├── cursor.go │ │ ├── cwd.go │ │ ├── doc.go │ │ ├── finalterm.go │ │ ├── focus.go │ │ ├── graphics.go │ │ ├── hyperlink.go │ │ ├── iterm2.go │ │ ├── keypad.go │ │ ├── kitty.go │ │ ├── kitty │ │ │ ├── decoder.go │ │ │ ├── encoder.go │ │ │ ├── graphics.go │ │ │ └── options.go │ │ ├── method.go │ │ ├── mode.go │ │ ├── modes.go │ │ ├── mouse.go │ │ ├── notification.go │ │ ├── parser.go │ │ ├── parser │ │ │ ├── const.go │ │ │ ├── seq.go │ │ │ └── transition_table.go │ │ ├── parser_decode.go │ │ ├── parser_handler.go │ │ ├── parser_sync.go │ │ ├── passthrough.go │ │ ├── paste.go │ │ ├── reset.go │ │ ├── screen.go │ │ ├── sgr.go │ │ ├── status.go │ │ ├── style.go │ │ ├── termcap.go │ │ ├── title.go │ │ ├── truncate.go │ │ ├── util.go │ │ ├── width.go │ │ ├── winop.go │ │ ├── wrap.go │ │ └── xterm.go │ │ ├── cellbuf │ │ ├── LICENSE │ │ ├── buffer.go │ │ ├── cell.go │ │ ├── errors.go │ │ ├── geom.go │ │ ├── hardscroll.go │ │ ├── hashmap.go │ │ ├── link.go │ │ ├── screen.go │ │ ├── sequence.go │ │ ├── style.go │ │ ├── tabstop.go │ │ ├── utils.go │ │ ├── wrap.go │ │ └── writer.go │ │ └── term │ │ ├── LICENSE │ │ ├── term.go │ │ ├── term_other.go │ │ ├── term_unix.go │ │ ├── term_unix_bsd.go │ │ ├── term_unix_other.go │ │ ├── term_windows.go │ │ ├── terminal.go │ │ └── util.go ├── cli │ ├── browser │ │ ├── LICENSE │ │ ├── README.md │ │ ├── browser.go │ │ ├── browser_darwin.go │ │ ├── browser_freebsd.go │ │ ├── browser_linux.go │ │ ├── browser_netbsd.go │ │ ├── browser_openbsd.go │ │ ├── browser_unsupported.go │ │ └── browser_windows.go │ ├── go-gh │ │ └── v2 │ │ │ ├── LICENSE │ │ │ ├── internal │ │ │ ├── set │ │ │ │ └── string_set.go │ │ │ └── yamlmap │ │ │ │ └── yaml_map.go │ │ │ └── pkg │ │ │ ├── api │ │ │ ├── cache.go │ │ │ ├── client_options.go │ │ │ ├── errors.go │ │ │ ├── graphql_client.go │ │ │ ├── http_client.go │ │ │ ├── log_formatter.go │ │ │ └── rest_client.go │ │ │ ├── asciisanitizer │ │ │ └── sanitizer.go │ │ │ ├── auth │ │ │ └── auth.go │ │ │ ├── browser │ │ │ └── browser.go │ │ │ ├── config │ │ │ ├── config.go │ │ │ └── errors.go │ │ │ ├── jsonpretty │ │ │ └── format.go │ │ │ ├── prompter │ │ │ ├── mock.go │ │ │ └── prompter.go │ │ │ ├── tableprinter │ │ │ └── table.go │ │ │ ├── term │ │ │ ├── console.go │ │ │ ├── console_windows.go │ │ │ └── env.go │ │ │ └── text │ │ │ └── text.go │ ├── safeexec │ │ ├── LICENSE │ │ ├── README.md │ │ ├── lookpath.go │ │ ├── lookpath_1.18.go │ │ └── lookpath_windows.go │ └── shurcooL-graphql │ │ ├── .golangci.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── graphql.go │ │ ├── ident │ │ └── ident.go │ │ ├── internal │ │ └── jsonutil │ │ │ └── graphql.go │ │ ├── query.go │ │ └── scalar.go ├── cloudflare │ └── circl │ │ ├── LICENSE │ │ ├── dh │ │ ├── x25519 │ │ │ ├── curve.go │ │ │ ├── curve_amd64.go │ │ │ ├── curve_amd64.h │ │ │ ├── curve_amd64.s │ │ │ ├── curve_generic.go │ │ │ ├── curve_noasm.go │ │ │ ├── doc.go │ │ │ ├── key.go │ │ │ └── table.go │ │ └── x448 │ │ │ ├── curve.go │ │ │ ├── curve_amd64.go │ │ │ ├── curve_amd64.h │ │ │ ├── curve_amd64.s │ │ │ ├── curve_generic.go │ │ │ ├── curve_noasm.go │ │ │ ├── doc.go │ │ │ ├── key.go │ │ │ └── table.go │ │ ├── ecc │ │ └── goldilocks │ │ │ ├── constants.go │ │ │ ├── curve.go │ │ │ ├── isogeny.go │ │ │ ├── point.go │ │ │ ├── scalar.go │ │ │ ├── twist.go │ │ │ ├── twistPoint.go │ │ │ ├── twistTables.go │ │ │ └── twist_basemult.go │ │ ├── internal │ │ ├── conv │ │ │ └── conv.go │ │ └── sha3 │ │ │ ├── doc.go │ │ │ ├── hashes.go │ │ │ ├── keccakf.go │ │ │ ├── rc.go │ │ │ ├── sha3.go │ │ │ ├── sha3_s390x.s │ │ │ ├── shake.go │ │ │ ├── xor.go │ │ │ ├── xor_generic.go │ │ │ └── xor_unaligned.go │ │ ├── math │ │ ├── fp25519 │ │ │ ├── fp.go │ │ │ ├── fp_amd64.go │ │ │ ├── fp_amd64.h │ │ │ ├── fp_amd64.s │ │ │ ├── fp_generic.go │ │ │ └── fp_noasm.go │ │ ├── fp448 │ │ │ ├── fp.go │ │ │ ├── fp_amd64.go │ │ │ ├── fp_amd64.h │ │ │ ├── fp_amd64.s │ │ │ ├── fp_generic.go │ │ │ ├── fp_noasm.go │ │ │ └── fuzzer.go │ │ ├── integer.go │ │ ├── mlsbset │ │ │ ├── mlsbset.go │ │ │ └── power.go │ │ ├── primes.go │ │ └── wnaf.go │ │ └── sign │ │ ├── ed25519 │ │ ├── ed25519.go │ │ ├── modular.go │ │ ├── mult.go │ │ ├── point.go │ │ ├── pubkey.go │ │ ├── pubkey112.go │ │ ├── signapi.go │ │ └── tables.go │ │ ├── ed448 │ │ ├── ed448.go │ │ └── signapi.go │ │ └── sign.go ├── creativeprojects │ └── go-selfupdate │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── arch.go │ │ ├── arm.go │ │ ├── codecov.yml │ │ ├── config.go │ │ ├── decompress.go │ │ ├── detect.go │ │ ├── doc.go │ │ ├── errors.go │ │ ├── gitea_release.go │ │ ├── gitea_source.go │ │ ├── github_release.go │ │ ├── github_source.go │ │ ├── gitlab_release.go │ │ ├── gitlab_source.go │ │ ├── http_release.go │ │ ├── http_source.go │ │ ├── internal │ │ ├── path.go │ │ ├── resolve_path_unix.go │ │ └── resolve_path_windows.go │ │ ├── log.go │ │ ├── package.go │ │ ├── path.go │ │ ├── release.go │ │ ├── repository.go │ │ ├── repository_id.go │ │ ├── repository_slug.go │ │ ├── sonar-project.properties │ │ ├── source.go │ │ ├── token.go │ │ ├── universal_binary.go │ │ ├── update.go │ │ ├── update │ │ ├── LICENSE │ │ ├── apply.go │ │ ├── doc.go │ │ ├── hide_noop.go │ │ ├── hide_windows.go │ │ ├── options.go │ │ └── verifier.go │ │ ├── updater.go │ │ └── validate.go ├── cyphar │ └── filepath-securejoin │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── VERSION │ │ ├── doc.go │ │ ├── gocompat_errors_go120.go │ │ ├── gocompat_errors_unsupported.go │ │ ├── gocompat_generics_go121.go │ │ ├── gocompat_generics_unsupported.go │ │ ├── join.go │ │ ├── lookup_linux.go │ │ ├── mkdir_linux.go │ │ ├── open_linux.go │ │ ├── openat2_linux.go │ │ ├── openat_linux.go │ │ ├── procfs_linux.go │ │ └── vfs.go ├── davecgh │ └── go-spew │ │ ├── LICENSE │ │ └── spew │ │ ├── bypass.go │ │ ├── bypasssafe.go │ │ ├── common.go │ │ ├── config.go │ │ ├── doc.go │ │ ├── dump.go │ │ ├── format.go │ │ └── spew.go ├── davidmz │ └── go-pageant │ │ ├── LICENSE.txt │ │ ├── README.md │ │ ├── io_windows.go │ │ └── pageant_windows.go ├── dlclark │ └── regexp2 │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── ATTRIB │ │ ├── LICENSE │ │ ├── README.md │ │ ├── fastclock.go │ │ ├── match.go │ │ ├── regexp.go │ │ ├── replace.go │ │ ├── runner.go │ │ ├── syntax │ │ ├── charclass.go │ │ ├── code.go │ │ ├── escape.go │ │ ├── fuzz.go │ │ ├── parser.go │ │ ├── prefix.go │ │ ├── replacerdata.go │ │ ├── tree.go │ │ └── writer.go │ │ └── testoutput1 ├── emirpasic │ └── gods │ │ ├── LICENSE │ │ ├── containers │ │ ├── containers.go │ │ ├── enumerable.go │ │ ├── iterator.go │ │ └── serialization.go │ │ ├── lists │ │ ├── arraylist │ │ │ ├── arraylist.go │ │ │ ├── enumerable.go │ │ │ ├── iterator.go │ │ │ └── serialization.go │ │ └── lists.go │ │ ├── trees │ │ ├── binaryheap │ │ │ ├── binaryheap.go │ │ │ ├── iterator.go │ │ │ └── serialization.go │ │ └── trees.go │ │ └── utils │ │ ├── comparator.go │ │ ├── sort.go │ │ └── utils.go ├── fatih │ └── color │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── color.go │ │ ├── color_windows.go │ │ └── doc.go ├── go-fed │ └── httpsig │ │ ├── LICENSE │ │ ├── README.md │ │ ├── algorithms.go │ │ ├── digest.go │ │ ├── httpsig.go │ │ ├── signing.go │ │ └── verifying.go ├── go-git │ ├── gcfg │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README │ │ ├── doc.go │ │ ├── errors.go │ │ ├── read.go │ │ ├── scanner │ │ │ ├── errors.go │ │ │ └── scanner.go │ │ ├── set.go │ │ ├── token │ │ │ ├── position.go │ │ │ ├── serialize.go │ │ │ └── token.go │ │ └── types │ │ │ ├── bool.go │ │ │ ├── doc.go │ │ │ ├── enum.go │ │ │ ├── int.go │ │ │ └── scan.go │ ├── go-billy │ │ └── v5 │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── fs.go │ │ │ ├── helper │ │ │ ├── chroot │ │ │ │ └── chroot.go │ │ │ └── polyfill │ │ │ │ └── polyfill.go │ │ │ ├── memfs │ │ │ ├── memory.go │ │ │ └── storage.go │ │ │ ├── osfs │ │ │ ├── os.go │ │ │ ├── os_bound.go │ │ │ ├── os_chroot.go │ │ │ ├── os_js.go │ │ │ ├── os_options.go │ │ │ ├── os_plan9.go │ │ │ ├── os_posix.go │ │ │ ├── os_wasip1.go │ │ │ └── os_windows.go │ │ │ └── util │ │ │ ├── glob.go │ │ │ ├── util.go │ │ │ └── walk.go │ └── go-git │ │ └── v5 │ │ ├── .gitignore │ │ ├── CODE_OF_CONDUCT.md │ │ ├── COMPATIBILITY.md │ │ ├── CONTRIBUTING.md │ │ ├── EXTENDING.md │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── SECURITY.md │ │ ├── blame.go │ │ ├── common.go │ │ ├── config │ │ ├── branch.go │ │ ├── config.go │ │ ├── modules.go │ │ ├── refspec.go │ │ └── url.go │ │ ├── doc.go │ │ ├── internal │ │ ├── path_util │ │ │ └── path_util.go │ │ ├── revision │ │ │ ├── parser.go │ │ │ ├── scanner.go │ │ │ └── token.go │ │ └── url │ │ │ └── url.go │ │ ├── object_walker.go │ │ ├── options.go │ │ ├── oss-fuzz.sh │ │ ├── plumbing │ │ ├── cache │ │ │ ├── buffer_lru.go │ │ │ ├── common.go │ │ │ └── object_lru.go │ │ ├── color │ │ │ └── color.go │ │ ├── error.go │ │ ├── filemode │ │ │ └── filemode.go │ │ ├── format │ │ │ ├── config │ │ │ │ ├── common.go │ │ │ │ ├── decoder.go │ │ │ │ ├── doc.go │ │ │ │ ├── encoder.go │ │ │ │ ├── format.go │ │ │ │ ├── option.go │ │ │ │ └── section.go │ │ │ ├── diff │ │ │ │ ├── colorconfig.go │ │ │ │ ├── patch.go │ │ │ │ └── unified_encoder.go │ │ │ ├── gitignore │ │ │ │ ├── dir.go │ │ │ │ ├── doc.go │ │ │ │ ├── matcher.go │ │ │ │ └── pattern.go │ │ │ ├── idxfile │ │ │ │ ├── decoder.go │ │ │ │ ├── doc.go │ │ │ │ ├── encoder.go │ │ │ │ ├── idxfile.go │ │ │ │ └── writer.go │ │ │ ├── index │ │ │ │ ├── decoder.go │ │ │ │ ├── doc.go │ │ │ │ ├── encoder.go │ │ │ │ ├── index.go │ │ │ │ └── match.go │ │ │ ├── objfile │ │ │ │ ├── doc.go │ │ │ │ ├── reader.go │ │ │ │ └── writer.go │ │ │ ├── packfile │ │ │ │ ├── common.go │ │ │ │ ├── delta_index.go │ │ │ │ ├── delta_selector.go │ │ │ │ ├── diff_delta.go │ │ │ │ ├── doc.go │ │ │ │ ├── encoder.go │ │ │ │ ├── error.go │ │ │ │ ├── fsobject.go │ │ │ │ ├── object_pack.go │ │ │ │ ├── packfile.go │ │ │ │ ├── parser.go │ │ │ │ ├── patch_delta.go │ │ │ │ └── scanner.go │ │ │ └── pktline │ │ │ │ ├── encoder.go │ │ │ │ ├── error.go │ │ │ │ └── scanner.go │ │ ├── hash.go │ │ ├── hash │ │ │ ├── hash.go │ │ │ ├── hash_sha1.go │ │ │ └── hash_sha256.go │ │ ├── memory.go │ │ ├── object.go │ │ ├── object │ │ │ ├── blob.go │ │ │ ├── change.go │ │ │ ├── change_adaptor.go │ │ │ ├── commit.go │ │ │ ├── commit_walker.go │ │ │ ├── commit_walker_bfs.go │ │ │ ├── commit_walker_bfs_filtered.go │ │ │ ├── commit_walker_ctime.go │ │ │ ├── commit_walker_limit.go │ │ │ ├── commit_walker_path.go │ │ │ ├── difftree.go │ │ │ ├── file.go │ │ │ ├── merge_base.go │ │ │ ├── object.go │ │ │ ├── patch.go │ │ │ ├── rename.go │ │ │ ├── signature.go │ │ │ ├── tag.go │ │ │ ├── tree.go │ │ │ └── treenoder.go │ │ ├── protocol │ │ │ └── packp │ │ │ │ ├── advrefs.go │ │ │ │ ├── advrefs_decode.go │ │ │ │ ├── advrefs_encode.go │ │ │ │ ├── capability │ │ │ │ ├── capability.go │ │ │ │ └── list.go │ │ │ │ ├── common.go │ │ │ │ ├── doc.go │ │ │ │ ├── filter.go │ │ │ │ ├── gitproto.go │ │ │ │ ├── report_status.go │ │ │ │ ├── shallowupd.go │ │ │ │ ├── sideband │ │ │ │ ├── common.go │ │ │ │ ├── demux.go │ │ │ │ ├── doc.go │ │ │ │ └── muxer.go │ │ │ │ ├── srvresp.go │ │ │ │ ├── ulreq.go │ │ │ │ ├── ulreq_decode.go │ │ │ │ ├── ulreq_encode.go │ │ │ │ ├── updreq.go │ │ │ │ ├── updreq_decode.go │ │ │ │ ├── updreq_encode.go │ │ │ │ ├── uppackreq.go │ │ │ │ └── uppackresp.go │ │ ├── reference.go │ │ ├── revision.go │ │ ├── revlist │ │ │ └── revlist.go │ │ ├── storer │ │ │ ├── doc.go │ │ │ ├── index.go │ │ │ ├── object.go │ │ │ ├── reference.go │ │ │ ├── shallow.go │ │ │ └── storer.go │ │ └── transport │ │ │ ├── client │ │ │ └── client.go │ │ │ ├── common.go │ │ │ ├── file │ │ │ ├── client.go │ │ │ └── server.go │ │ │ ├── git │ │ │ └── common.go │ │ │ ├── http │ │ │ ├── common.go │ │ │ ├── receive_pack.go │ │ │ ├── transport.go │ │ │ └── upload_pack.go │ │ │ ├── internal │ │ │ └── common │ │ │ │ ├── common.go │ │ │ │ ├── mocks.go │ │ │ │ └── server.go │ │ │ ├── server │ │ │ ├── loader.go │ │ │ └── server.go │ │ │ └── ssh │ │ │ ├── auth_method.go │ │ │ └── common.go │ │ ├── prune.go │ │ ├── remote.go │ │ ├── repository.go │ │ ├── signer.go │ │ ├── status.go │ │ ├── storage │ │ ├── filesystem │ │ │ ├── config.go │ │ │ ├── deltaobject.go │ │ │ ├── dotgit │ │ │ │ ├── dotgit.go │ │ │ │ ├── dotgit_rewrite_packed_refs.go │ │ │ │ ├── dotgit_setref.go │ │ │ │ ├── reader.go │ │ │ │ ├── repository_filesystem.go │ │ │ │ └── writers.go │ │ │ ├── index.go │ │ │ ├── module.go │ │ │ ├── object.go │ │ │ ├── reference.go │ │ │ ├── shallow.go │ │ │ └── storage.go │ │ ├── memory │ │ │ └── storage.go │ │ └── storer.go │ │ ├── submodule.go │ │ ├── utils │ │ ├── binary │ │ │ ├── read.go │ │ │ └── write.go │ │ ├── diff │ │ │ └── diff.go │ │ ├── ioutil │ │ │ └── common.go │ │ ├── merkletrie │ │ │ ├── change.go │ │ │ ├── difftree.go │ │ │ ├── doc.go │ │ │ ├── doubleiter.go │ │ │ ├── filesystem │ │ │ │ └── node.go │ │ │ ├── index │ │ │ │ └── node.go │ │ │ ├── internal │ │ │ │ └── frame │ │ │ │ │ └── frame.go │ │ │ ├── iter.go │ │ │ └── noder │ │ │ │ ├── noder.go │ │ │ │ └── path.go │ │ ├── sync │ │ │ ├── bufio.go │ │ │ ├── bytes.go │ │ │ └── zlib.go │ │ └── trace │ │ │ └── trace.go │ │ ├── worktree.go │ │ ├── worktree_bsd.go │ │ ├── worktree_commit.go │ │ ├── worktree_js.go │ │ ├── worktree_linux.go │ │ ├── worktree_plan9.go │ │ ├── worktree_status.go │ │ ├── worktree_unix_other.go │ │ └── worktree_windows.go ├── goccy │ ├── go-json │ │ ├── .codecov.yml │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── color.go │ │ ├── decode.go │ │ ├── docker-compose.yml │ │ ├── encode.go │ │ ├── error.go │ │ ├── internal │ │ │ ├── decoder │ │ │ │ ├── anonymous_field.go │ │ │ │ ├── array.go │ │ │ │ ├── assign.go │ │ │ │ ├── bool.go │ │ │ │ ├── bytes.go │ │ │ │ ├── compile.go │ │ │ │ ├── compile_norace.go │ │ │ │ ├── compile_race.go │ │ │ │ ├── context.go │ │ │ │ ├── float.go │ │ │ │ ├── func.go │ │ │ │ ├── int.go │ │ │ │ ├── interface.go │ │ │ │ ├── invalid.go │ │ │ │ ├── map.go │ │ │ │ ├── number.go │ │ │ │ ├── option.go │ │ │ │ ├── path.go │ │ │ │ ├── ptr.go │ │ │ │ ├── slice.go │ │ │ │ ├── stream.go │ │ │ │ ├── string.go │ │ │ │ ├── struct.go │ │ │ │ ├── type.go │ │ │ │ ├── uint.go │ │ │ │ ├── unmarshal_json.go │ │ │ │ ├── unmarshal_text.go │ │ │ │ └── wrapped_string.go │ │ │ ├── encoder │ │ │ │ ├── code.go │ │ │ │ ├── compact.go │ │ │ │ ├── compiler.go │ │ │ │ ├── compiler_norace.go │ │ │ │ ├── compiler_race.go │ │ │ │ ├── context.go │ │ │ │ ├── decode_rune.go │ │ │ │ ├── encoder.go │ │ │ │ ├── indent.go │ │ │ │ ├── int.go │ │ │ │ ├── map112.go │ │ │ │ ├── map113.go │ │ │ │ ├── opcode.go │ │ │ │ ├── option.go │ │ │ │ ├── optype.go │ │ │ │ ├── query.go │ │ │ │ ├── string.go │ │ │ │ ├── string_table.go │ │ │ │ ├── vm │ │ │ │ │ ├── debug_vm.go │ │ │ │ │ ├── hack.go │ │ │ │ │ ├── util.go │ │ │ │ │ └── vm.go │ │ │ │ ├── vm_color │ │ │ │ │ ├── debug_vm.go │ │ │ │ │ ├── hack.go │ │ │ │ │ ├── util.go │ │ │ │ │ └── vm.go │ │ │ │ ├── vm_color_indent │ │ │ │ │ ├── debug_vm.go │ │ │ │ │ ├── util.go │ │ │ │ │ └── vm.go │ │ │ │ └── vm_indent │ │ │ │ │ ├── debug_vm.go │ │ │ │ │ ├── hack.go │ │ │ │ │ ├── util.go │ │ │ │ │ └── vm.go │ │ │ ├── errors │ │ │ │ └── error.go │ │ │ └── runtime │ │ │ │ ├── rtype.go │ │ │ │ ├── struct_field.go │ │ │ │ └── type.go │ │ ├── json.go │ │ ├── option.go │ │ ├── path.go │ │ └── query.go │ └── go-yaml │ │ ├── .codecov.yml │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── ast │ │ └── ast.go │ │ ├── context.go │ │ ├── decode.go │ │ ├── encode.go │ │ ├── error.go │ │ ├── internal │ │ ├── errors │ │ │ └── error.go │ │ └── format │ │ │ └── format.go │ │ ├── lexer │ │ └── lexer.go │ │ ├── option.go │ │ ├── parser │ │ ├── color.go │ │ ├── context.go │ │ ├── node.go │ │ ├── option.go │ │ ├── parser.go │ │ └── token.go │ │ ├── path.go │ │ ├── printer │ │ ├── color.go │ │ └── printer.go │ │ ├── scanner │ │ ├── context.go │ │ ├── error.go │ │ └── scanner.go │ │ ├── stdlib_quote.go │ │ ├── struct.go │ │ ├── token │ │ └── token.go │ │ ├── validate.go │ │ └── yaml.go ├── golang │ └── groupcache │ │ ├── LICENSE │ │ └── lru │ │ └── lru.go ├── google │ ├── go-github │ │ └── v30 │ │ │ ├── AUTHORS │ │ │ ├── LICENSE │ │ │ └── github │ │ │ ├── actions.go │ │ │ ├── actions_artifacts.go │ │ │ ├── actions_runners.go │ │ │ ├── actions_secrets.go │ │ │ ├── actions_workflow_jobs.go │ │ │ ├── actions_workflow_runs.go │ │ │ ├── actions_workflows.go │ │ │ ├── activity.go │ │ │ ├── activity_events.go │ │ │ ├── activity_notifications.go │ │ │ ├── activity_star.go │ │ │ ├── activity_watching.go │ │ │ ├── admin.go │ │ │ ├── admin_orgs.go │ │ │ ├── admin_stats.go │ │ │ ├── admin_users.go │ │ │ ├── apps.go │ │ │ ├── apps_installation.go │ │ │ ├── apps_manifest.go │ │ │ ├── apps_marketplace.go │ │ │ ├── authorizations.go │ │ │ ├── checks.go │ │ │ ├── doc.go │ │ │ ├── event.go │ │ │ ├── event_types.go │ │ │ ├── gists.go │ │ │ ├── gists_comments.go │ │ │ ├── git.go │ │ │ ├── git_blobs.go │ │ │ ├── git_commits.go │ │ │ ├── git_refs.go │ │ │ ├── git_tags.go │ │ │ ├── git_trees.go │ │ │ ├── github-accessors.go │ │ │ ├── github.go │ │ │ ├── gitignore.go │ │ │ ├── interactions.go │ │ │ ├── interactions_orgs.go │ │ │ ├── interactions_repos.go │ │ │ ├── issues.go │ │ │ ├── issues_assignees.go │ │ │ ├── issues_comments.go │ │ │ ├── issues_events.go │ │ │ ├── issues_labels.go │ │ │ ├── issues_milestones.go │ │ │ ├── issues_timeline.go │ │ │ ├── licenses.go │ │ │ ├── messages.go │ │ │ ├── migrations.go │ │ │ ├── migrations_source_import.go │ │ │ ├── migrations_user.go │ │ │ ├── misc.go │ │ │ ├── orgs.go │ │ │ ├── orgs_hooks.go │ │ │ ├── orgs_members.go │ │ │ ├── orgs_outside_collaborators.go │ │ │ ├── orgs_projects.go │ │ │ ├── orgs_users_blocking.go │ │ │ ├── projects.go │ │ │ ├── pulls.go │ │ │ ├── pulls_comments.go │ │ │ ├── pulls_reviewers.go │ │ │ ├── pulls_reviews.go │ │ │ ├── reactions.go │ │ │ ├── repos.go │ │ │ ├── repos_collaborators.go │ │ │ ├── repos_comments.go │ │ │ ├── repos_commits.go │ │ │ ├── repos_community_health.go │ │ │ ├── repos_contents.go │ │ │ ├── repos_deployments.go │ │ │ ├── repos_forks.go │ │ │ ├── repos_hooks.go │ │ │ ├── repos_invitations.go │ │ │ ├── repos_keys.go │ │ │ ├── repos_merging.go │ │ │ ├── repos_pages.go │ │ │ ├── repos_prereceive_hooks.go │ │ │ ├── repos_projects.go │ │ │ ├── repos_releases.go │ │ │ ├── repos_stats.go │ │ │ ├── repos_statuses.go │ │ │ ├── repos_traffic.go │ │ │ ├── search.go │ │ │ ├── strings.go │ │ │ ├── teams.go │ │ │ ├── teams_discussion_comments.go │ │ │ ├── teams_discussions.go │ │ │ ├── teams_members.go │ │ │ ├── timestamp.go │ │ │ ├── users.go │ │ │ ├── users_administration.go │ │ │ ├── users_blocking.go │ │ │ ├── users_emails.go │ │ │ ├── users_followers.go │ │ │ ├── users_gpg_keys.go │ │ │ ├── users_keys.go │ │ │ ├── users_projects.go │ │ │ ├── with_appengine.go │ │ │ └── without_appengine.go │ ├── go-querystring │ │ ├── LICENSE │ │ └── query │ │ │ └── encode.go │ └── shlex │ │ ├── COPYING │ │ ├── README │ │ └── shlex.go ├── hashicorp │ ├── go-cleanhttp │ │ ├── LICENSE │ │ ├── README.md │ │ ├── cleanhttp.go │ │ ├── doc.go │ │ └── handlers.go │ ├── go-retryablehttp │ │ ├── .gitignore │ │ ├── .go-version │ │ ├── CHANGELOG.md │ │ ├── CODEOWNERS │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── cert_error_go119.go │ │ ├── cert_error_go120.go │ │ ├── client.go │ │ └── roundtripper.go │ └── go-version │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── constraint.go │ │ ├── version.go │ │ └── version_collection.go ├── henvic │ └── httpretty │ │ ├── .gitignore │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── httpretty.go │ │ ├── internal │ │ ├── color │ │ │ └── color.go │ │ └── header │ │ │ └── header.go │ │ ├── printer.go │ │ ├── recorder.go │ │ └── tls.go ├── inconshreveable │ └── mousetrap │ │ ├── LICENSE │ │ ├── README.md │ │ ├── trap_others.go │ │ └── trap_windows.go ├── jbenet │ └── go-context │ │ ├── LICENSE │ │ └── io │ │ └── ctxio.go ├── kballard │ └── go-shellquote │ │ ├── LICENSE │ │ ├── README │ │ ├── doc.go │ │ ├── quote.go │ │ └── unquote.go ├── kevinburke │ └── ssh_config │ │ ├── .gitattributes │ │ ├── .gitignore │ │ ├── .mailmap │ │ ├── AUTHORS.txt │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── config.go │ │ ├── lexer.go │ │ ├── parser.go │ │ ├── position.go │ │ ├── token.go │ │ └── validators.go ├── lucasb-eyer │ └── go-colorful │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── colorgens.go │ │ ├── colors.go │ │ ├── happy_palettegen.go │ │ ├── hexcolor.go │ │ ├── hsluv-snapshot-rev4.json │ │ ├── hsluv.go │ │ ├── soft_palettegen.go │ │ └── warm_palettegen.go ├── mattn │ ├── go-colorable │ │ ├── LICENSE │ │ ├── README.md │ │ ├── colorable_others.go │ │ ├── colorable_windows.go │ │ ├── go.test.sh │ │ └── noncolorable.go │ ├── go-isatty │ │ ├── LICENSE │ │ ├── README.md │ │ ├── doc.go │ │ ├── go.test.sh │ │ ├── isatty_bsd.go │ │ ├── isatty_others.go │ │ ├── isatty_plan9.go │ │ ├── isatty_solaris.go │ │ ├── isatty_tcgets.go │ │ └── isatty_windows.go │ └── go-runewidth │ │ ├── LICENSE │ │ ├── README.md │ │ ├── runewidth.go │ │ ├── runewidth_appengine.go │ │ ├── runewidth_js.go │ │ ├── runewidth_posix.go │ │ ├── runewidth_table.go │ │ └── runewidth_windows.go ├── mgutz │ └── ansi │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── ansi.go │ │ ├── doc.go │ │ └── print.go ├── mitchellh │ └── colorstring │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ └── colorstring.go ├── muesli │ ├── reflow │ │ ├── LICENSE │ │ ├── ansi │ │ │ ├── ansi.go │ │ │ ├── buffer.go │ │ │ └── writer.go │ │ └── truncate │ │ │ └── truncate.go │ └── termenv │ │ ├── .gitignore │ │ ├── .golangci-soft.yml │ │ ├── .golangci.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── ansi_compat.md │ │ ├── ansicolors.go │ │ ├── color.go │ │ ├── constants_linux.go │ │ ├── constants_solaris.go │ │ ├── constants_unix.go │ │ ├── constants_zos.go │ │ ├── copy.go │ │ ├── hyperlink.go │ │ ├── notification.go │ │ ├── output.go │ │ ├── profile.go │ │ ├── screen.go │ │ ├── style.go │ │ ├── templatehelper.go │ │ ├── termenv.go │ │ ├── termenv_other.go │ │ ├── termenv_posix.go │ │ ├── termenv_solaris.go │ │ ├── termenv_unix.go │ │ └── termenv_windows.go ├── neilotoole │ └── jsoncolor │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── SECURITY.md │ │ ├── SEGMENTIO_README.md │ │ ├── ascii.go │ │ ├── codec.go │ │ ├── decode.go │ │ ├── encode.go │ │ ├── json.go │ │ ├── jsoncolor.go │ │ ├── parse.go │ │ ├── reflect.go │ │ ├── reflect_optimize.go │ │ ├── splash.png │ │ ├── terminal.go │ │ ├── terminal_windows.go │ │ └── token.go ├── pjbgf │ └── sha1cd │ │ ├── Dockerfile.arm │ │ ├── Dockerfile.arm64 │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── detection.go │ │ ├── internal │ │ └── const.go │ │ ├── sha1cd.go │ │ ├── sha1cdblock_amd64.go │ │ ├── sha1cdblock_amd64.s │ │ ├── sha1cdblock_generic.go │ │ ├── sha1cdblock_noasm.go │ │ └── ubc │ │ ├── const.go │ │ ├── ubc.go │ │ ├── ubc_amd64.go │ │ ├── ubc_amd64.s │ │ ├── ubc_generic.go │ │ └── ubc_noasm.go ├── pmezard │ └── go-difflib │ │ ├── LICENSE │ │ └── difflib │ │ └── difflib.go ├── rivo │ └── uniseg │ │ ├── LICENSE.txt │ │ ├── README.md │ │ ├── doc.go │ │ ├── eastasianwidth.go │ │ ├── emojipresentation.go │ │ ├── gen_breaktest.go │ │ ├── gen_properties.go │ │ ├── grapheme.go │ │ ├── graphemeproperties.go │ │ ├── graphemerules.go │ │ ├── line.go │ │ ├── lineproperties.go │ │ ├── linerules.go │ │ ├── properties.go │ │ ├── sentence.go │ │ ├── sentenceproperties.go │ │ ├── sentencerules.go │ │ ├── step.go │ │ ├── width.go │ │ ├── word.go │ │ ├── wordproperties.go │ │ └── wordrules.go ├── sarumaj │ └── go-super │ │ ├── LICENSE │ │ └── errors │ │ ├── callback.go │ │ ├── error.go │ │ ├── except.go │ │ └── wrappers.go ├── schollz │ └── progressbar │ │ └── v3 │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── progressbar.go │ │ └── spinners.go ├── sergi │ └── go-diff │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ └── diffmatchpatch │ │ ├── diff.go │ │ ├── diffmatchpatch.go │ │ ├── match.go │ │ ├── mathutil.go │ │ ├── operation_string.go │ │ ├── patch.go │ │ └── stringutil.go ├── sirupsen │ └── logrus │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── .travis.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── alt_exit.go │ │ ├── appveyor.yml │ │ ├── buffer_pool.go │ │ ├── doc.go │ │ ├── entry.go │ │ ├── exported.go │ │ ├── formatter.go │ │ ├── hooks.go │ │ ├── json_formatter.go │ │ ├── logger.go │ │ ├── logrus.go │ │ ├── terminal_check_appengine.go │ │ ├── terminal_check_bsd.go │ │ ├── terminal_check_js.go │ │ ├── terminal_check_no_terminal.go │ │ ├── terminal_check_notappengine.go │ │ ├── terminal_check_solaris.go │ │ ├── terminal_check_unix.go │ │ ├── terminal_check_windows.go │ │ ├── text_formatter.go │ │ └── writer.go ├── skeema │ └── knownhosts │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── NOTICE │ │ ├── README.md │ │ └── knownhosts.go ├── spf13 │ ├── cobra │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── .mailmap │ │ ├── CONDUCT.md │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE.txt │ │ ├── MAINTAINERS │ │ ├── Makefile │ │ ├── README.md │ │ ├── active_help.go │ │ ├── args.go │ │ ├── bash_completions.go │ │ ├── bash_completionsV2.go │ │ ├── cobra.go │ │ ├── command.go │ │ ├── command_notwin.go │ │ ├── command_win.go │ │ ├── completions.go │ │ ├── fish_completions.go │ │ ├── flag_groups.go │ │ ├── powershell_completions.go │ │ ├── shell_completions.go │ │ └── zsh_completions.go │ └── pflag │ │ ├── .editorconfig │ │ ├── .gitignore │ │ ├── .golangci.yaml │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── bool.go │ │ ├── bool_slice.go │ │ ├── bytes.go │ │ ├── count.go │ │ ├── duration.go │ │ ├── duration_slice.go │ │ ├── flag.go │ │ ├── float32.go │ │ ├── float32_slice.go │ │ ├── float64.go │ │ ├── float64_slice.go │ │ ├── golangflag.go │ │ ├── int.go │ │ ├── int16.go │ │ ├── int32.go │ │ ├── int32_slice.go │ │ ├── int64.go │ │ ├── int64_slice.go │ │ ├── int8.go │ │ ├── int_slice.go │ │ ├── ip.go │ │ ├── ip_slice.go │ │ ├── ipmask.go │ │ ├── ipnet.go │ │ ├── ipnet_slice.go │ │ ├── string.go │ │ ├── string_array.go │ │ ├── string_slice.go │ │ ├── string_to_int.go │ │ ├── string_to_int64.go │ │ ├── string_to_string.go │ │ ├── uint.go │ │ ├── uint16.go │ │ ├── uint32.go │ │ ├── uint64.go │ │ ├── uint8.go │ │ └── uint_slice.go ├── stretchr │ └── testify │ │ ├── LICENSE │ │ └── assert │ │ ├── assertion_compare.go │ │ ├── assertion_format.go │ │ ├── assertion_format.go.tmpl │ │ ├── assertion_forward.go │ │ ├── assertion_forward.go.tmpl │ │ ├── assertion_order.go │ │ ├── assertions.go │ │ ├── doc.go │ │ ├── errors.go │ │ ├── forward_assertions.go │ │ ├── http_assertions.go │ │ └── yaml │ │ ├── yaml_custom.go │ │ ├── yaml_default.go │ │ └── yaml_fail.go ├── thlib │ └── go-timezone-local │ │ ├── LICENSE │ │ └── tzlocal │ │ ├── tz.go │ │ ├── tz_unix.go │ │ ├── tz_windows.go │ │ ├── tz_windows_tzutil.go │ │ ├── tz_windows_tzutil_go1.18.go │ │ └── tzmapping.go ├── ulikunitz │ └── xz │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── SECURITY.md │ │ ├── TODO.md │ │ ├── bits.go │ │ ├── crc.go │ │ ├── format.go │ │ ├── fox-check-none.xz │ │ ├── fox.xz │ │ ├── internal │ │ ├── hash │ │ │ ├── cyclic_poly.go │ │ │ ├── doc.go │ │ │ ├── rabin_karp.go │ │ │ └── roller.go │ │ └── xlog │ │ │ └── xlog.go │ │ ├── lzma │ │ ├── bintree.go │ │ ├── bitops.go │ │ ├── breader.go │ │ ├── buffer.go │ │ ├── bytewriter.go │ │ ├── decoder.go │ │ ├── decoderdict.go │ │ ├── directcodec.go │ │ ├── distcodec.go │ │ ├── encoder.go │ │ ├── encoderdict.go │ │ ├── fox.lzma │ │ ├── hashtable.go │ │ ├── header.go │ │ ├── header2.go │ │ ├── lengthcodec.go │ │ ├── literalcodec.go │ │ ├── matchalgorithm.go │ │ ├── operation.go │ │ ├── prob.go │ │ ├── properties.go │ │ ├── rangecodec.go │ │ ├── reader.go │ │ ├── reader2.go │ │ ├── state.go │ │ ├── treecodecs.go │ │ ├── writer.go │ │ └── writer2.go │ │ ├── lzmafilter.go │ │ ├── make-docs │ │ ├── none-check.go │ │ ├── reader.go │ │ └── writer.go ├── xanzy │ ├── go-gitlab │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── access_requests.go │ │ ├── appearance.go │ │ ├── applications.go │ │ ├── audit_events.go │ │ ├── avatar.go │ │ ├── award_emojis.go │ │ ├── boards.go │ │ ├── branches.go │ │ ├── broadcast_messages.go │ │ ├── ci_yml_templates.go │ │ ├── client_options.go │ │ ├── cluster_agents.go │ │ ├── commits.go │ │ ├── container_registry.go │ │ ├── custom_attributes.go │ │ ├── dependency_list_export.go │ │ ├── deploy_keys.go │ │ ├── deploy_tokens.go │ │ ├── deployments.go │ │ ├── deployments_merge_requests.go │ │ ├── discussions.go │ │ ├── dockerfile_templates.go │ │ ├── dora_metrics.go │ │ ├── draft_notes.go │ │ ├── environments.go │ │ ├── epic_issues.go │ │ ├── epics.go │ │ ├── error_tracking.go │ │ ├── event_parsing.go │ │ ├── event_systemhook_types.go │ │ ├── event_webhook_types.go │ │ ├── events.go │ │ ├── external_status_checks.go │ │ ├── feature_flags.go │ │ ├── freeze_periods.go │ │ ├── generic_packages.go │ │ ├── geo_nodes.go │ │ ├── gitignore_templates.go │ │ ├── gitlab.go │ │ ├── group_access_tokens.go │ │ ├── group_badges.go │ │ ├── group_boards.go │ │ ├── group_clusters.go │ │ ├── group_epic_boards.go │ │ ├── group_hooks.go │ │ ├── group_import_export.go │ │ ├── group_iterations.go │ │ ├── group_labels.go │ │ ├── group_members.go │ │ ├── group_milestones.go │ │ ├── group_protected_environments.go │ │ ├── group_repository_storage_move.go │ │ ├── group_serviceaccounts.go │ │ ├── group_ssh_certificates.go │ │ ├── group_variables.go │ │ ├── group_wikis.go │ │ ├── groups.go │ │ ├── import.go │ │ ├── instance_clusters.go │ │ ├── instance_variables.go │ │ ├── invites.go │ │ ├── issue_links.go │ │ ├── issues.go │ │ ├── issues_statistics.go │ │ ├── job_token_scope.go │ │ ├── jobs.go │ │ ├── keys.go │ │ ├── labels.go │ │ ├── license.go │ │ ├── license_templates.go │ │ ├── markdown.go │ │ ├── member_roles.go │ │ ├── merge_request_approvals.go │ │ ├── merge_requests.go │ │ ├── merge_trains.go │ │ ├── metadata.go │ │ ├── milestones.go │ │ ├── namespaces.go │ │ ├── notes.go │ │ ├── notifications.go │ │ ├── packages.go │ │ ├── pages.go │ │ ├── pages_domains.go │ │ ├── personal_access_tokens.go │ │ ├── pipeline_schedules.go │ │ ├── pipeline_triggers.go │ │ ├── pipelines.go │ │ ├── plan_limits.go │ │ ├── project_access_tokens.go │ │ ├── project_badges.go │ │ ├── project_clusters.go │ │ ├── project_feature_flags.go │ │ ├── project_import_export.go │ │ ├── project_iterations.go │ │ ├── project_managed_licenses.go │ │ ├── project_markdown_uploads.go │ │ ├── project_members.go │ │ ├── project_mirror.go │ │ ├── project_repository_storage_move.go │ │ ├── project_snippets.go │ │ ├── project_templates.go │ │ ├── project_variables.go │ │ ├── project_vulnerabilities.go │ │ ├── projects.go │ │ ├── protected_branches.go │ │ ├── protected_environments.go │ │ ├── protected_tags.go │ │ ├── releaselinks.go │ │ ├── releases.go │ │ ├── repositories.go │ │ ├── repository_files.go │ │ ├── repository_submodules.go │ │ ├── request_options.go │ │ ├── resource_group.go │ │ ├── resource_iteration_events.go │ │ ├── resource_label_events.go │ │ ├── resource_milestone_events.go │ │ ├── resource_state_events.go │ │ ├── resource_weight_events.go │ │ ├── runners.go │ │ ├── search.go │ │ ├── services.go │ │ ├── settings.go │ │ ├── sidekiq_metrics.go │ │ ├── snippet_repository_storage_move.go │ │ ├── snippets.go │ │ ├── strings.go │ │ ├── system_hooks.go │ │ ├── tags.go │ │ ├── time_stats.go │ │ ├── todos.go │ │ ├── topics.go │ │ ├── types.go │ │ ├── users.go │ │ ├── validate.go │ │ ├── version.go │ │ └── wikis.go │ └── ssh-agent │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── pageant_windows.go │ │ ├── sshagent.go │ │ └── sshagent_windows.go ├── xo │ └── terminfo │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── caps.go │ │ ├── capvals.go │ │ ├── color.go │ │ ├── dec.go │ │ ├── load.go │ │ ├── param.go │ │ ├── stack.go │ │ └── terminfo.go └── ztrue │ └── tracerr │ ├── .gitignore │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── colors.go │ ├── error.go │ ├── output.png │ └── print.go ├── golang.org └── x │ ├── crypto │ ├── LICENSE │ ├── PATENTS │ ├── argon2 │ │ ├── argon2.go │ │ ├── blake2b.go │ │ ├── blamka_amd64.go │ │ ├── blamka_amd64.s │ │ ├── blamka_generic.go │ │ └── blamka_ref.go │ ├── blake2b │ │ ├── blake2b.go │ │ ├── blake2bAVX2_amd64.go │ │ ├── blake2bAVX2_amd64.s │ │ ├── blake2b_amd64.s │ │ ├── blake2b_generic.go │ │ ├── blake2b_ref.go │ │ ├── blake2x.go │ │ └── register.go │ ├── blake2s │ │ ├── blake2s.go │ │ ├── blake2s_386.go │ │ ├── blake2s_386.s │ │ ├── blake2s_amd64.go │ │ ├── blake2s_amd64.s │ │ ├── blake2s_generic.go │ │ ├── blake2s_ref.go │ │ └── blake2x.go │ ├── blowfish │ │ ├── block.go │ │ ├── cipher.go │ │ └── const.go │ ├── cast5 │ │ └── cast5.go │ ├── chacha20 │ │ ├── chacha_arm64.go │ │ ├── chacha_arm64.s │ │ ├── chacha_generic.go │ │ ├── chacha_noasm.go │ │ ├── chacha_ppc64x.go │ │ ├── chacha_ppc64x.s │ │ ├── chacha_s390x.go │ │ ├── chacha_s390x.s │ │ └── xor.go │ ├── cryptobyte │ │ ├── asn1.go │ │ ├── asn1 │ │ │ └── asn1.go │ │ ├── builder.go │ │ └── string.go │ ├── curve25519 │ │ └── curve25519.go │ ├── ed25519 │ │ └── ed25519.go │ ├── hkdf │ │ └── hkdf.go │ ├── internal │ │ ├── alias │ │ │ ├── alias.go │ │ │ └── alias_purego.go │ │ └── poly1305 │ │ │ ├── mac_noasm.go │ │ │ ├── poly1305.go │ │ │ ├── sum_amd64.s │ │ │ ├── sum_asm.go │ │ │ ├── sum_generic.go │ │ │ ├── sum_loong64.s │ │ │ ├── sum_ppc64x.s │ │ │ ├── sum_s390x.go │ │ │ └── sum_s390x.s │ ├── openpgp │ │ ├── armor │ │ │ ├── armor.go │ │ │ └── encode.go │ │ ├── canonical_text.go │ │ ├── elgamal │ │ │ └── elgamal.go │ │ ├── errors │ │ │ └── errors.go │ │ ├── keys.go │ │ ├── packet │ │ │ ├── compressed.go │ │ │ ├── config.go │ │ │ ├── encrypted_key.go │ │ │ ├── literal.go │ │ │ ├── ocfb.go │ │ │ ├── one_pass_signature.go │ │ │ ├── opaque.go │ │ │ ├── packet.go │ │ │ ├── private_key.go │ │ │ ├── public_key.go │ │ │ ├── public_key_v3.go │ │ │ ├── reader.go │ │ │ ├── signature.go │ │ │ ├── signature_v3.go │ │ │ ├── symmetric_key_encrypted.go │ │ │ ├── symmetrically_encrypted.go │ │ │ ├── userattribute.go │ │ │ └── userid.go │ │ ├── read.go │ │ ├── s2k │ │ │ └── s2k.go │ │ └── write.go │ ├── ripemd160 │ │ ├── ripemd160.go │ │ └── ripemd160block.go │ ├── sha3 │ │ ├── doc.go │ │ ├── hashes.go │ │ ├── hashes_noasm.go │ │ ├── keccakf.go │ │ ├── keccakf_amd64.go │ │ ├── keccakf_amd64.s │ │ ├── sha3.go │ │ ├── sha3_s390x.go │ │ ├── sha3_s390x.s │ │ ├── shake.go │ │ └── shake_noasm.go │ └── ssh │ │ ├── agent │ │ ├── client.go │ │ ├── forward.go │ │ ├── keyring.go │ │ └── server.go │ │ ├── buffer.go │ │ ├── certs.go │ │ ├── channel.go │ │ ├── cipher.go │ │ ├── client.go │ │ ├── client_auth.go │ │ ├── common.go │ │ ├── connection.go │ │ ├── doc.go │ │ ├── handshake.go │ │ ├── internal │ │ └── bcrypt_pbkdf │ │ │ └── bcrypt_pbkdf.go │ │ ├── kex.go │ │ ├── keys.go │ │ ├── knownhosts │ │ └── knownhosts.go │ │ ├── mac.go │ │ ├── messages.go │ │ ├── mlkem.go │ │ ├── mux.go │ │ ├── server.go │ │ ├── session.go │ │ ├── ssh_gss.go │ │ ├── streamlocal.go │ │ ├── tcpip.go │ │ └── transport.go │ ├── net │ ├── LICENSE │ ├── PATENTS │ ├── context │ │ └── context.go │ ├── internal │ │ └── socks │ │ │ ├── client.go │ │ │ └── socks.go │ └── proxy │ │ ├── dial.go │ │ ├── direct.go │ │ ├── per_host.go │ │ ├── proxy.go │ │ └── socks5.go │ ├── oauth2 │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── README.md │ ├── deviceauth.go │ ├── internal │ │ ├── doc.go │ │ ├── oauth2.go │ │ ├── token.go │ │ └── transport.go │ ├── oauth2.go │ ├── pkce.go │ ├── token.go │ └── transport.go │ ├── sys │ ├── LICENSE │ ├── PATENTS │ ├── cpu │ │ ├── asm_aix_ppc64.s │ │ ├── asm_darwin_x86_gc.s │ │ ├── byteorder.go │ │ ├── cpu.go │ │ ├── cpu_aix.go │ │ ├── cpu_arm.go │ │ ├── cpu_arm64.go │ │ ├── cpu_arm64.s │ │ ├── cpu_darwin_x86.go │ │ ├── cpu_gc_arm64.go │ │ ├── cpu_gc_s390x.go │ │ ├── cpu_gc_x86.go │ │ ├── cpu_gc_x86.s │ │ ├── cpu_gccgo_arm64.go │ │ ├── cpu_gccgo_s390x.go │ │ ├── cpu_gccgo_x86.c │ │ ├── cpu_gccgo_x86.go │ │ ├── cpu_linux.go │ │ ├── cpu_linux_arm.go │ │ ├── cpu_linux_arm64.go │ │ ├── cpu_linux_loong64.go │ │ ├── cpu_linux_mips64x.go │ │ ├── cpu_linux_noinit.go │ │ ├── cpu_linux_ppc64x.go │ │ ├── cpu_linux_riscv64.go │ │ ├── cpu_linux_s390x.go │ │ ├── cpu_loong64.go │ │ ├── cpu_loong64.s │ │ ├── cpu_mips64x.go │ │ ├── cpu_mipsx.go │ │ ├── cpu_netbsd_arm64.go │ │ ├── cpu_openbsd_arm64.go │ │ ├── cpu_openbsd_arm64.s │ │ ├── cpu_other_arm.go │ │ ├── cpu_other_arm64.go │ │ ├── cpu_other_mips64x.go │ │ ├── cpu_other_ppc64x.go │ │ ├── cpu_other_riscv64.go │ │ ├── cpu_other_x86.go │ │ ├── cpu_ppc64x.go │ │ ├── cpu_riscv64.go │ │ ├── cpu_s390x.go │ │ ├── cpu_s390x.s │ │ ├── cpu_wasm.go │ │ ├── cpu_x86.go │ │ ├── cpu_zos.go │ │ ├── cpu_zos_s390x.go │ │ ├── endian_big.go │ │ ├── endian_little.go │ │ ├── hwcap_linux.go │ │ ├── parse.go │ │ ├── proc_cpuinfo_linux.go │ │ ├── runtime_auxv.go │ │ ├── runtime_auxv_go121.go │ │ ├── syscall_aix_gccgo.go │ │ ├── syscall_aix_ppc64_gc.go │ │ └── syscall_darwin_x86_gc.go │ ├── execabs │ │ ├── execabs.go │ │ ├── execabs_go118.go │ │ └── execabs_go119.go │ ├── plan9 │ │ ├── asm.s │ │ ├── asm_plan9_386.s │ │ ├── asm_plan9_amd64.s │ │ ├── asm_plan9_arm.s │ │ ├── const_plan9.go │ │ ├── dir_plan9.go │ │ ├── env_plan9.go │ │ ├── errors_plan9.go │ │ ├── mkall.sh │ │ ├── mkerrors.sh │ │ ├── mksysnum_plan9.sh │ │ ├── pwd_go15_plan9.go │ │ ├── pwd_plan9.go │ │ ├── race.go │ │ ├── race0.go │ │ ├── str.go │ │ ├── syscall.go │ │ ├── syscall_plan9.go │ │ ├── zsyscall_plan9_386.go │ │ ├── zsyscall_plan9_amd64.go │ │ ├── zsyscall_plan9_arm.go │ │ └── zsysnum_plan9.go │ ├── unix │ │ ├── .gitignore │ │ ├── README.md │ │ ├── affinity_linux.go │ │ ├── aliases.go │ │ ├── asm_aix_ppc64.s │ │ ├── asm_bsd_386.s │ │ ├── asm_bsd_amd64.s │ │ ├── asm_bsd_arm.s │ │ ├── asm_bsd_arm64.s │ │ ├── asm_bsd_ppc64.s │ │ ├── asm_bsd_riscv64.s │ │ ├── asm_linux_386.s │ │ ├── asm_linux_amd64.s │ │ ├── asm_linux_arm.s │ │ ├── asm_linux_arm64.s │ │ ├── asm_linux_loong64.s │ │ ├── asm_linux_mips64x.s │ │ ├── asm_linux_mipsx.s │ │ ├── asm_linux_ppc64x.s │ │ ├── asm_linux_riscv64.s │ │ ├── asm_linux_s390x.s │ │ ├── asm_openbsd_mips64.s │ │ ├── asm_solaris_amd64.s │ │ ├── asm_zos_s390x.s │ │ ├── auxv.go │ │ ├── auxv_unsupported.go │ │ ├── bluetooth_linux.go │ │ ├── bpxsvc_zos.go │ │ ├── bpxsvc_zos.s │ │ ├── cap_freebsd.go │ │ ├── constants.go │ │ ├── dev_aix_ppc.go │ │ ├── dev_aix_ppc64.go │ │ ├── dev_darwin.go │ │ ├── dev_dragonfly.go │ │ ├── dev_freebsd.go │ │ ├── dev_linux.go │ │ ├── dev_netbsd.go │ │ ├── dev_openbsd.go │ │ ├── dev_zos.go │ │ ├── dirent.go │ │ ├── endian_big.go │ │ ├── endian_little.go │ │ ├── env_unix.go │ │ ├── fcntl.go │ │ ├── fcntl_darwin.go │ │ ├── fcntl_linux_32bit.go │ │ ├── fdset.go │ │ ├── gccgo.go │ │ ├── gccgo_c.c │ │ ├── gccgo_linux_amd64.go │ │ ├── ifreq_linux.go │ │ ├── ioctl_linux.go │ │ ├── ioctl_signed.go │ │ ├── ioctl_unsigned.go │ │ ├── ioctl_zos.go │ │ ├── mkall.sh │ │ ├── mkerrors.sh │ │ ├── mmap_nomremap.go │ │ ├── mremap.go │ │ ├── pagesize_unix.go │ │ ├── pledge_openbsd.go │ │ ├── ptrace_darwin.go │ │ ├── ptrace_ios.go │ │ ├── race.go │ │ ├── race0.go │ │ ├── readdirent_getdents.go │ │ ├── readdirent_getdirentries.go │ │ ├── sockcmsg_dragonfly.go │ │ ├── sockcmsg_linux.go │ │ ├── sockcmsg_unix.go │ │ ├── sockcmsg_unix_other.go │ │ ├── sockcmsg_zos.go │ │ ├── symaddr_zos_s390x.s │ │ ├── syscall.go │ │ ├── syscall_aix.go │ │ ├── syscall_aix_ppc.go │ │ ├── syscall_aix_ppc64.go │ │ ├── syscall_bsd.go │ │ ├── syscall_darwin.go │ │ ├── syscall_darwin_amd64.go │ │ ├── syscall_darwin_arm64.go │ │ ├── syscall_darwin_libSystem.go │ │ ├── syscall_dragonfly.go │ │ ├── syscall_dragonfly_amd64.go │ │ ├── syscall_freebsd.go │ │ ├── syscall_freebsd_386.go │ │ ├── syscall_freebsd_amd64.go │ │ ├── syscall_freebsd_arm.go │ │ ├── syscall_freebsd_arm64.go │ │ ├── syscall_freebsd_riscv64.go │ │ ├── syscall_hurd.go │ │ ├── syscall_hurd_386.go │ │ ├── syscall_illumos.go │ │ ├── syscall_linux.go │ │ ├── syscall_linux_386.go │ │ ├── syscall_linux_alarm.go │ │ ├── syscall_linux_amd64.go │ │ ├── syscall_linux_amd64_gc.go │ │ ├── syscall_linux_arm.go │ │ ├── syscall_linux_arm64.go │ │ ├── syscall_linux_gc.go │ │ ├── syscall_linux_gc_386.go │ │ ├── syscall_linux_gc_arm.go │ │ ├── syscall_linux_gccgo_386.go │ │ ├── syscall_linux_gccgo_arm.go │ │ ├── syscall_linux_loong64.go │ │ ├── syscall_linux_mips64x.go │ │ ├── syscall_linux_mipsx.go │ │ ├── syscall_linux_ppc.go │ │ ├── syscall_linux_ppc64x.go │ │ ├── syscall_linux_riscv64.go │ │ ├── syscall_linux_s390x.go │ │ ├── syscall_linux_sparc64.go │ │ ├── syscall_netbsd.go │ │ ├── syscall_netbsd_386.go │ │ ├── syscall_netbsd_amd64.go │ │ ├── syscall_netbsd_arm.go │ │ ├── syscall_netbsd_arm64.go │ │ ├── syscall_openbsd.go │ │ ├── syscall_openbsd_386.go │ │ ├── syscall_openbsd_amd64.go │ │ ├── syscall_openbsd_arm.go │ │ ├── syscall_openbsd_arm64.go │ │ ├── syscall_openbsd_libc.go │ │ ├── syscall_openbsd_mips64.go │ │ ├── syscall_openbsd_ppc64.go │ │ ├── syscall_openbsd_riscv64.go │ │ ├── syscall_solaris.go │ │ ├── syscall_solaris_amd64.go │ │ ├── syscall_unix.go │ │ ├── syscall_unix_gc.go │ │ ├── syscall_unix_gc_ppc64x.go │ │ ├── syscall_zos_s390x.go │ │ ├── sysvshm_linux.go │ │ ├── sysvshm_unix.go │ │ ├── sysvshm_unix_other.go │ │ ├── timestruct.go │ │ ├── unveil_openbsd.go │ │ ├── vgetrandom_linux.go │ │ ├── vgetrandom_unsupported.go │ │ ├── xattr_bsd.go │ │ ├── zerrors_aix_ppc.go │ │ ├── zerrors_aix_ppc64.go │ │ ├── zerrors_darwin_amd64.go │ │ ├── zerrors_darwin_arm64.go │ │ ├── zerrors_dragonfly_amd64.go │ │ ├── zerrors_freebsd_386.go │ │ ├── zerrors_freebsd_amd64.go │ │ ├── zerrors_freebsd_arm.go │ │ ├── zerrors_freebsd_arm64.go │ │ ├── zerrors_freebsd_riscv64.go │ │ ├── zerrors_linux.go │ │ ├── zerrors_linux_386.go │ │ ├── zerrors_linux_amd64.go │ │ ├── zerrors_linux_arm.go │ │ ├── zerrors_linux_arm64.go │ │ ├── zerrors_linux_loong64.go │ │ ├── zerrors_linux_mips.go │ │ ├── zerrors_linux_mips64.go │ │ ├── zerrors_linux_mips64le.go │ │ ├── zerrors_linux_mipsle.go │ │ ├── zerrors_linux_ppc.go │ │ ├── zerrors_linux_ppc64.go │ │ ├── zerrors_linux_ppc64le.go │ │ ├── zerrors_linux_riscv64.go │ │ ├── zerrors_linux_s390x.go │ │ ├── zerrors_linux_sparc64.go │ │ ├── zerrors_netbsd_386.go │ │ ├── zerrors_netbsd_amd64.go │ │ ├── zerrors_netbsd_arm.go │ │ ├── zerrors_netbsd_arm64.go │ │ ├── zerrors_openbsd_386.go │ │ ├── zerrors_openbsd_amd64.go │ │ ├── zerrors_openbsd_arm.go │ │ ├── zerrors_openbsd_arm64.go │ │ ├── zerrors_openbsd_mips64.go │ │ ├── zerrors_openbsd_ppc64.go │ │ ├── zerrors_openbsd_riscv64.go │ │ ├── zerrors_solaris_amd64.go │ │ ├── zerrors_zos_s390x.go │ │ ├── zptrace_armnn_linux.go │ │ ├── zptrace_linux_arm64.go │ │ ├── zptrace_mipsnn_linux.go │ │ ├── zptrace_mipsnnle_linux.go │ │ ├── zptrace_x86_linux.go │ │ ├── zsymaddr_zos_s390x.s │ │ ├── zsyscall_aix_ppc.go │ │ ├── zsyscall_aix_ppc64.go │ │ ├── zsyscall_aix_ppc64_gc.go │ │ ├── zsyscall_aix_ppc64_gccgo.go │ │ ├── zsyscall_darwin_amd64.go │ │ ├── zsyscall_darwin_amd64.s │ │ ├── zsyscall_darwin_arm64.go │ │ ├── zsyscall_darwin_arm64.s │ │ ├── zsyscall_dragonfly_amd64.go │ │ ├── zsyscall_freebsd_386.go │ │ ├── zsyscall_freebsd_amd64.go │ │ ├── zsyscall_freebsd_arm.go │ │ ├── zsyscall_freebsd_arm64.go │ │ ├── zsyscall_freebsd_riscv64.go │ │ ├── zsyscall_illumos_amd64.go │ │ ├── zsyscall_linux.go │ │ ├── zsyscall_linux_386.go │ │ ├── zsyscall_linux_amd64.go │ │ ├── zsyscall_linux_arm.go │ │ ├── zsyscall_linux_arm64.go │ │ ├── zsyscall_linux_loong64.go │ │ ├── zsyscall_linux_mips.go │ │ ├── zsyscall_linux_mips64.go │ │ ├── zsyscall_linux_mips64le.go │ │ ├── zsyscall_linux_mipsle.go │ │ ├── zsyscall_linux_ppc.go │ │ ├── zsyscall_linux_ppc64.go │ │ ├── zsyscall_linux_ppc64le.go │ │ ├── zsyscall_linux_riscv64.go │ │ ├── zsyscall_linux_s390x.go │ │ ├── zsyscall_linux_sparc64.go │ │ ├── zsyscall_netbsd_386.go │ │ ├── zsyscall_netbsd_amd64.go │ │ ├── zsyscall_netbsd_arm.go │ │ ├── zsyscall_netbsd_arm64.go │ │ ├── zsyscall_openbsd_386.go │ │ ├── zsyscall_openbsd_386.s │ │ ├── zsyscall_openbsd_amd64.go │ │ ├── zsyscall_openbsd_amd64.s │ │ ├── zsyscall_openbsd_arm.go │ │ ├── zsyscall_openbsd_arm.s │ │ ├── zsyscall_openbsd_arm64.go │ │ ├── zsyscall_openbsd_arm64.s │ │ ├── zsyscall_openbsd_mips64.go │ │ ├── zsyscall_openbsd_mips64.s │ │ ├── zsyscall_openbsd_ppc64.go │ │ ├── zsyscall_openbsd_ppc64.s │ │ ├── zsyscall_openbsd_riscv64.go │ │ ├── zsyscall_openbsd_riscv64.s │ │ ├── zsyscall_solaris_amd64.go │ │ ├── zsyscall_zos_s390x.go │ │ ├── zsysctl_openbsd_386.go │ │ ├── zsysctl_openbsd_amd64.go │ │ ├── zsysctl_openbsd_arm.go │ │ ├── zsysctl_openbsd_arm64.go │ │ ├── zsysctl_openbsd_mips64.go │ │ ├── zsysctl_openbsd_ppc64.go │ │ ├── zsysctl_openbsd_riscv64.go │ │ ├── zsysnum_darwin_amd64.go │ │ ├── zsysnum_darwin_arm64.go │ │ ├── zsysnum_dragonfly_amd64.go │ │ ├── zsysnum_freebsd_386.go │ │ ├── zsysnum_freebsd_amd64.go │ │ ├── zsysnum_freebsd_arm.go │ │ ├── zsysnum_freebsd_arm64.go │ │ ├── zsysnum_freebsd_riscv64.go │ │ ├── zsysnum_linux_386.go │ │ ├── zsysnum_linux_amd64.go │ │ ├── zsysnum_linux_arm.go │ │ ├── zsysnum_linux_arm64.go │ │ ├── zsysnum_linux_loong64.go │ │ ├── zsysnum_linux_mips.go │ │ ├── zsysnum_linux_mips64.go │ │ ├── zsysnum_linux_mips64le.go │ │ ├── zsysnum_linux_mipsle.go │ │ ├── zsysnum_linux_ppc.go │ │ ├── zsysnum_linux_ppc64.go │ │ ├── zsysnum_linux_ppc64le.go │ │ ├── zsysnum_linux_riscv64.go │ │ ├── zsysnum_linux_s390x.go │ │ ├── zsysnum_linux_sparc64.go │ │ ├── zsysnum_netbsd_386.go │ │ ├── zsysnum_netbsd_amd64.go │ │ ├── zsysnum_netbsd_arm.go │ │ ├── zsysnum_netbsd_arm64.go │ │ ├── zsysnum_openbsd_386.go │ │ ├── zsysnum_openbsd_amd64.go │ │ ├── zsysnum_openbsd_arm.go │ │ ├── zsysnum_openbsd_arm64.go │ │ ├── zsysnum_openbsd_mips64.go │ │ ├── zsysnum_openbsd_ppc64.go │ │ ├── zsysnum_openbsd_riscv64.go │ │ ├── zsysnum_zos_s390x.go │ │ ├── ztypes_aix_ppc.go │ │ ├── ztypes_aix_ppc64.go │ │ ├── ztypes_darwin_amd64.go │ │ ├── ztypes_darwin_arm64.go │ │ ├── ztypes_dragonfly_amd64.go │ │ ├── ztypes_freebsd_386.go │ │ ├── ztypes_freebsd_amd64.go │ │ ├── ztypes_freebsd_arm.go │ │ ├── ztypes_freebsd_arm64.go │ │ ├── ztypes_freebsd_riscv64.go │ │ ├── ztypes_linux.go │ │ ├── ztypes_linux_386.go │ │ ├── ztypes_linux_amd64.go │ │ ├── ztypes_linux_arm.go │ │ ├── ztypes_linux_arm64.go │ │ ├── ztypes_linux_loong64.go │ │ ├── ztypes_linux_mips.go │ │ ├── ztypes_linux_mips64.go │ │ ├── ztypes_linux_mips64le.go │ │ ├── ztypes_linux_mipsle.go │ │ ├── ztypes_linux_ppc.go │ │ ├── ztypes_linux_ppc64.go │ │ ├── ztypes_linux_ppc64le.go │ │ ├── ztypes_linux_riscv64.go │ │ ├── ztypes_linux_s390x.go │ │ ├── ztypes_linux_sparc64.go │ │ ├── ztypes_netbsd_386.go │ │ ├── ztypes_netbsd_amd64.go │ │ ├── ztypes_netbsd_arm.go │ │ ├── ztypes_netbsd_arm64.go │ │ ├── ztypes_openbsd_386.go │ │ ├── ztypes_openbsd_amd64.go │ │ ├── ztypes_openbsd_arm.go │ │ ├── ztypes_openbsd_arm64.go │ │ ├── ztypes_openbsd_mips64.go │ │ ├── ztypes_openbsd_ppc64.go │ │ ├── ztypes_openbsd_riscv64.go │ │ ├── ztypes_solaris_amd64.go │ │ └── ztypes_zos_s390x.go │ └── windows │ │ ├── aliases.go │ │ ├── dll_windows.go │ │ ├── env_windows.go │ │ ├── eventlog.go │ │ ├── exec_windows.go │ │ ├── memory_windows.go │ │ ├── mkerrors.bash │ │ ├── mkknownfolderids.bash │ │ ├── mksyscall.go │ │ ├── race.go │ │ ├── race0.go │ │ ├── registry │ │ ├── key.go │ │ ├── mksyscall.go │ │ ├── syscall.go │ │ ├── value.go │ │ └── zsyscall_windows.go │ │ ├── security_windows.go │ │ ├── service.go │ │ ├── setupapi_windows.go │ │ ├── str.go │ │ ├── syscall.go │ │ ├── syscall_windows.go │ │ ├── types_windows.go │ │ ├── types_windows_386.go │ │ ├── types_windows_amd64.go │ │ ├── types_windows_arm.go │ │ ├── types_windows_arm64.go │ │ ├── zerrors_windows.go │ │ ├── zknownfolderids_windows.go │ │ └── zsyscall_windows.go │ ├── term │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── PATENTS │ ├── README.md │ ├── codereview.cfg │ ├── term.go │ ├── term_plan9.go │ ├── term_unix.go │ ├── term_unix_bsd.go │ ├── term_unix_other.go │ ├── term_unsupported.go │ ├── term_windows.go │ └── terminal.go │ ├── text │ ├── LICENSE │ ├── PATENTS │ ├── cases │ │ ├── cases.go │ │ ├── context.go │ │ ├── fold.go │ │ ├── icu.go │ │ ├── info.go │ │ ├── map.go │ │ ├── tables10.0.0.go │ │ ├── tables11.0.0.go │ │ ├── tables12.0.0.go │ │ ├── tables13.0.0.go │ │ ├── tables15.0.0.go │ │ ├── tables9.0.0.go │ │ └── trieval.go │ ├── internal │ │ ├── internal.go │ │ ├── language │ │ │ ├── common.go │ │ │ ├── compact.go │ │ │ ├── compact │ │ │ │ ├── compact.go │ │ │ │ ├── language.go │ │ │ │ ├── parents.go │ │ │ │ ├── tables.go │ │ │ │ └── tags.go │ │ │ ├── compose.go │ │ │ ├── coverage.go │ │ │ ├── language.go │ │ │ ├── lookup.go │ │ │ ├── match.go │ │ │ ├── parse.go │ │ │ ├── tables.go │ │ │ └── tags.go │ │ ├── match.go │ │ └── tag │ │ │ └── tag.go │ ├── language │ │ ├── coverage.go │ │ ├── doc.go │ │ ├── language.go │ │ ├── match.go │ │ ├── parse.go │ │ ├── tables.go │ │ └── tags.go │ ├── runes │ │ ├── cond.go │ │ └── runes.go │ ├── transform │ │ └── transform.go │ ├── unicode │ │ └── norm │ │ │ ├── composition.go │ │ │ ├── forminfo.go │ │ │ ├── input.go │ │ │ ├── iter.go │ │ │ ├── normalize.go │ │ │ ├── readwriter.go │ │ │ ├── tables10.0.0.go │ │ │ ├── tables11.0.0.go │ │ │ ├── tables12.0.0.go │ │ │ ├── tables13.0.0.go │ │ │ ├── tables15.0.0.go │ │ │ ├── tables9.0.0.go │ │ │ ├── transform.go │ │ │ └── trie.go │ └── width │ │ ├── kind_string.go │ │ ├── tables10.0.0.go │ │ ├── tables11.0.0.go │ │ ├── tables12.0.0.go │ │ ├── tables13.0.0.go │ │ ├── tables15.0.0.go │ │ ├── tables9.0.0.go │ │ ├── transform.go │ │ ├── trieval.go │ │ └── width.go │ └── time │ ├── LICENSE │ ├── PATENTS │ └── rate │ ├── rate.go │ └── sometimes.go ├── gopkg.in ├── go-playground │ └── pool.v3 │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── batch.go │ │ ├── doc.go │ │ ├── errors.go │ │ ├── limited_pool.go │ │ ├── pool.go │ │ ├── unlimited_pool.go │ │ └── work_unit.go ├── warnings.v0 │ ├── LICENSE │ ├── README │ └── warnings.go └── yaml.v3 │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── apic.go │ ├── decode.go │ ├── emitterc.go │ ├── encode.go │ ├── parserc.go │ ├── readerc.go │ ├── resolve.go │ ├── scannerc.go │ ├── sorter.go │ ├── writerc.go │ ├── yaml.go │ ├── yamlh.go │ └── yamlprivateh.go └── modules.txt /.gitignore: -------------------------------------------------------------------------------- 1 | # If you prefer the allow list template instead of the deny list, see community template: 2 | # https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore 3 | # 4 | # Binaries for programs and plugins 5 | *.exe 6 | *.exe~ 7 | *.dll 8 | *.so 9 | *.dylib 10 | 11 | # Test binary, built with `go test -c` 12 | *.test 13 | 14 | # Output of the go coverage tool, specifically when used with LiteIDE 15 | *.out 16 | 17 | # Dependency directories (remove the comment below to include it) 18 | # vendor/ 19 | 20 | # Go workspace file 21 | go.work 22 | -------------------------------------------------------------------------------- /cspell.config.yaml: -------------------------------------------------------------------------------- 1 | version: "0.2" 2 | ignorePaths: [] 3 | dictionaryDefinitions: 4 | - name: custom-dictionary 5 | path: ./.cspell/custom-dictionary.txt 6 | addWords: true 7 | dictionaries: 8 | - custom-dictionary 9 | words: [] 10 | ignoreWords: [] 11 | import: [] 12 | enableFiletypes: 13 | - "!json" 14 | -------------------------------------------------------------------------------- /doc/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarumaj/gh-gr/f656ac012e595b064cc7f6ab9feabecab2705cec/doc/screenshot.png -------------------------------------------------------------------------------- /pkg/commands/command_update.go: -------------------------------------------------------------------------------- 1 | package commands 2 | 3 | import ( 4 | cobra "github.com/spf13/cobra" 5 | ) 6 | 7 | // updateCmd represents the update command 8 | var updateCmd = &cobra.Command{ 9 | Use: "update", 10 | Short: "Update configuration and fetch repositories", 11 | Example: "gh pr update", 12 | Run: func(*cobra.Command, []string) { 13 | initializeOrUpdateConfig(nil, true) 14 | }, 15 | } 16 | -------------------------------------------------------------------------------- /pkg/commands/package_doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package commands provides the command line interface for the application. 3 | Available commands are: 4 | - cleanup 5 | - export 6 | - init 7 | - import 8 | - pull 9 | - push 10 | - remove 11 | - status 12 | - update 13 | - version 14 | - view 15 | 16 | Each command is implemented as a separate file in this package. 17 | The commands make use of multiprocessor and multithreaded execution. 18 | */ 19 | package commands 20 | -------------------------------------------------------------------------------- /pkg/configfile/package_doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package configfile provides a simple interface for reading and writing configuration file. 3 | The configuration file is stored in the user's GitHub CLI configuration under a dedicated section. 4 | The configuration file is encoded in YAML format. 5 | */ 6 | package configfile 7 | -------------------------------------------------------------------------------- /pkg/extras/extras.go: -------------------------------------------------------------------------------- 1 | package extras 2 | 3 | import _ "embed" 4 | 5 | //go:embed git.aliases.json 6 | var GitAliasesJSON []byte 7 | -------------------------------------------------------------------------------- /pkg/restclient/api_endpoint_test.go: -------------------------------------------------------------------------------- 1 | package restclient 2 | 3 | import "testing" 4 | 5 | func TestApiEndpointFormat(t *testing.T) { 6 | type args struct { 7 | ep apiEndpoint 8 | params map[string]any 9 | } 10 | for _, tt := range []struct { 11 | name string 12 | args args 13 | want apiEndpoint 14 | }{ 15 | {"test#1", args{"parent/child", map[string]any{}}, "parent/child"}, 16 | {"test#2", args{"parent/{daughter}", map[string]any{"daughter": "son"}}, "parent/son"}, 17 | } { 18 | t.Run(tt.name, func(t *testing.T) { 19 | got := tt.args.ep.Format(tt.args.params) 20 | if got != tt.want { 21 | t.Errorf(`(apiEndpoint).Format(%v) failed: got: %q, want: %q`, tt.args.params, got, tt.want) 22 | } 23 | }) 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /pkg/restclient/package_doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package restclient provides a REST client for the GitHub API. 3 | */ 4 | package restclient 5 | -------------------------------------------------------------------------------- /pkg/restclient/request_path_test.go: -------------------------------------------------------------------------------- 1 | package restclient 2 | 3 | import "testing" 4 | 5 | func TestRequestPathStringify(t *testing.T) { 6 | for _, tt := range []struct { 7 | name string 8 | arg *requestPath 9 | want string 10 | }{ 11 | {"test#1", newRequestPath(""), ""}, 12 | {"test#2", newRequestPath("parent/child"), "parent/child"}, 13 | {"test#3", newRequestPath("parent/child").Add("param1", "val1", "val2"), "parent/child?param1=val1¶m1=val2"}, 14 | } { 15 | t.Run(tt.name, func(t *testing.T) { 16 | got := tt.arg.String() 17 | if got != tt.want { 18 | t.Errorf(`(requestPath).String() failed: got: %q, want %q`, got, tt.want) 19 | } 20 | }) 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /pkg/restclient/resources/advanced_securirty.go: -------------------------------------------------------------------------------- 1 | package resources 2 | 3 | type AdvancedSecurity struct { 4 | Status string `json:"status"` 5 | } 6 | -------------------------------------------------------------------------------- /pkg/restclient/resources/branch.go: -------------------------------------------------------------------------------- 1 | package resources 2 | 3 | // Branch represents a GitHub branch. 4 | type Branch struct { 5 | Label string `json:"label"` 6 | Ref string `json:"ref"` 7 | Sha string `json:"sha"` 8 | User User `json:"user"` 9 | Repo Repository `json:"repo"` 10 | } 11 | -------------------------------------------------------------------------------- /pkg/restclient/resources/href.go: -------------------------------------------------------------------------------- 1 | package resources 2 | 3 | // Href represents a link with an href attribute. 4 | type Href struct { 5 | Href string `json:"href"` 6 | } 7 | -------------------------------------------------------------------------------- /pkg/restclient/resources/label.go: -------------------------------------------------------------------------------- 1 | package resources 2 | 3 | // Label represents a GitHub label. 4 | type Label struct { 5 | ID int `json:"id"` 6 | NodeID string `json:"node_id"` 7 | URL string `json:"url"` 8 | Name string `json:"name"` 9 | Description string `json:"description"` 10 | Color string `json:"color"` 11 | Default bool `json:"default"` 12 | } 13 | -------------------------------------------------------------------------------- /pkg/restclient/resources/license.go: -------------------------------------------------------------------------------- 1 | package resources 2 | 3 | type License struct { 4 | Key string `json:"key"` 5 | Name string `json:"name"` 6 | URL string `json:"url"` 7 | SpdxID string `json:"spdx_id"` 8 | NodeID string `json:"node_id"` 9 | HTMLURL string `json:"html_url,omitempty"` 10 | } 11 | -------------------------------------------------------------------------------- /pkg/restclient/resources/package_doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package resources provides the resources for the restclient. 3 | Types have been autogenerated using https://mholt.github.io/json-to-go/. 4 | */ 5 | 6 | package resources 7 | -------------------------------------------------------------------------------- /pkg/restclient/resources/permissions.go: -------------------------------------------------------------------------------- 1 | package resources 2 | 3 | type Permissions struct { 4 | Pull bool `json:"pull"` 5 | Push bool `json:"push"` 6 | Admin bool `json:"admin"` 7 | } 8 | -------------------------------------------------------------------------------- /pkg/restclient/resources/plan.go: -------------------------------------------------------------------------------- 1 | package resources 2 | 3 | type Plan struct { 4 | Name string `json:"name"` 5 | Space int `json:"space"` 6 | PrivateRepos int `json:"private_repos"` 7 | Collaborators int `json:"collaborators"` 8 | } 9 | -------------------------------------------------------------------------------- /pkg/restclient/resources/pull_request_links.go: -------------------------------------------------------------------------------- 1 | package resources 2 | 3 | // PullRequestLinks represents the links associated with a GitHub pull request. 4 | type PullRequestLinks struct { 5 | Self Href `json:"self"` 6 | HTML Href `json:"html"` 7 | Issue Href `json:"issue"` 8 | Comments Href `json:"comments"` 9 | ReviewComments Href `json:"review_comments"` 10 | ReviewComment Href `json:"review_comment"` 11 | Commits Href `json:"commits"` 12 | Statuses Href `json:"statuses"` 13 | } 14 | -------------------------------------------------------------------------------- /pkg/restclient/resources/rate.go: -------------------------------------------------------------------------------- 1 | package resources 2 | 3 | type Rate struct { 4 | Limit int `json:"limit"` 5 | Used int `json:"used"` 6 | Remaining int `json:"remaining"` 7 | Reset int64 `json:"reset"` 8 | } 9 | -------------------------------------------------------------------------------- /pkg/restclient/resources/rate_limit.go: -------------------------------------------------------------------------------- 1 | package resources 2 | 3 | type RateLimit struct { 4 | Resources RateResources `json:"resources"` 5 | Rate Rate `json:"rate"` // Deprecated: Resources.Core should be used instead. 6 | } 7 | -------------------------------------------------------------------------------- /pkg/restclient/resources/rate_resources.go: -------------------------------------------------------------------------------- 1 | package resources 2 | 3 | type RateResources struct { 4 | Core Rate `json:"core"` 5 | Search Rate `json:"search"` 6 | Graphql Rate `json:"graphql"` 7 | IntegrationManifest Rate `json:"integration_manifest"` 8 | SourceImport Rate `json:"source_import"` 9 | CodeScanningUpload Rate `json:"code_scanning_upload"` 10 | ActionsRunnerRegistration Rate `json:"actions_runner_registration"` 11 | Scim Rate `json:"scim"` 12 | DependencySnapshots Rate `json:"dependency_snapshots"` 13 | CodeSearch Rate `json:"code_search"` 14 | } 15 | -------------------------------------------------------------------------------- /pkg/restclient/resources/search_result.go: -------------------------------------------------------------------------------- 1 | package resources 2 | 3 | type SearchResult[T any] struct { 4 | TotalCount int `json:"total_count"` 5 | IncompleteResults bool `json:"incomplete_results"` 6 | Items []T `json:"items"` 7 | } 8 | -------------------------------------------------------------------------------- /pkg/restclient/resources/secret_scanning.go: -------------------------------------------------------------------------------- 1 | package resources 2 | 3 | type SecretScanning struct { 4 | Status string `json:"status"` 5 | } 6 | -------------------------------------------------------------------------------- /pkg/restclient/resources/secret_scanning_push_protection.go: -------------------------------------------------------------------------------- 1 | package resources 2 | 3 | type SecretScanningPushProtection struct { 4 | Status string `json:"status"` 5 | } 6 | -------------------------------------------------------------------------------- /pkg/restclient/resources/security_and_analysis.go: -------------------------------------------------------------------------------- 1 | package resources 2 | 3 | type SecurityAndAnalysis struct { 4 | AdvancedSecurity AdvancedSecurity `json:"advanced_security"` 5 | SecretScanning SecretScanning `json:"secret_scanning"` 6 | SecretScanningPushProtection SecretScanningPushProtection `json:"secret_scanning_push_protection"` 7 | } 8 | -------------------------------------------------------------------------------- /pkg/restclient/test/api/v3/organizations.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "login": "github", 4 | "id": 1, 5 | "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", 6 | "url": "https://api.github.com/orgs/github", 7 | "repos_url": "https://api.github.com/orgs/github/repos", 8 | "events_url": "https://api.github.com/orgs/github/events", 9 | "hooks_url": "https://api.github.com/orgs/github/hooks", 10 | "issues_url": "https://api.github.com/orgs/github/issues", 11 | "members_url": "https://api.github.com/orgs/github/members{/member}", 12 | "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", 13 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 14 | "description": "A great organization" 15 | } 16 | ] 17 | -------------------------------------------------------------------------------- /pkg/restclient/test/api/v3/user/orgs.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "login": "github", 4 | "id": 1, 5 | "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", 6 | "url": "https://api.github.com/orgs/github", 7 | "repos_url": "https://api.github.com/orgs/github/repos", 8 | "events_url": "https://api.github.com/orgs/github/events", 9 | "hooks_url": "https://api.github.com/orgs/github/hooks", 10 | "issues_url": "https://api.github.com/orgs/github/issues", 11 | "members_url": "https://api.github.com/orgs/github/members{/member}", 12 | "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", 13 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 14 | "description": "A great organization" 15 | } 16 | ] 17 | -------------------------------------------------------------------------------- /pkg/util/ansi_codes.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | const ESC = "\x1b" // Begin ANSI sequence 4 | const CSI = ESC + "[" // Control Sequence Introducer 5 | const MUP = CSI + "1A" // Move cursor 1 line up 6 | const CCT = "m" // Color Code Terminator 7 | -------------------------------------------------------------------------------- /pkg/util/environ.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | import "os" 4 | 5 | // Prefix for relevant environment variables. 6 | const EnvPrefix = "GITHUB_REPO_" 7 | 8 | // Verbose env variable. 9 | const Verbose envVariable = "VERBOSE" 10 | 11 | // Custom type for env var names. 12 | type envVariable string 13 | 14 | // Retrieve environment variable. 15 | func Getenv(key envVariable) string { return os.Getenv(EnvPrefix + string(key)) } 16 | 17 | // Retrieve environment variable of boolean type. 18 | func GetenvBool(key envVariable) bool { 19 | switch Getenv(key) { 20 | case "true", "TRUE", "True", "1", "Y", "y", "YES", "yes": 21 | return true 22 | 23 | default: 24 | return false 25 | 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /pkg/util/package_doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package util provides utility functions for the application. 3 | */ 4 | package util 5 | -------------------------------------------------------------------------------- /vendor/code.gitea.io/sdk/gitea/agent_windows.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Gitea Authors. All rights reserved. 2 | // Use of this source code is governed by a MIT-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows 6 | 7 | package gitea 8 | 9 | import ( 10 | "fmt" 11 | 12 | "github.com/davidmz/go-pageant" 13 | "golang.org/x/crypto/ssh/agent" 14 | ) 15 | 16 | // hasAgent returns true if pageant is available 17 | func hasAgent() bool { 18 | return pageant.Available() 19 | } 20 | 21 | // GetAgent returns a ssh agent 22 | func GetAgent() (agent.Agent, error) { 23 | if !hasAgent() { 24 | return nil, fmt.Errorf("no pageant available") 25 | } 26 | 27 | return pageant.New(), nil 28 | } 29 | -------------------------------------------------------------------------------- /vendor/code.gitea.io/sdk/gitea/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Gitea Authors. All rights reserved. 2 | // Use of this source code is governed by a MIT-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package gitea implements a client for the Gitea API. 6 | // The version corresponds to the highest supported version 7 | // of the gitea API, but backwards-compatibility is mostly 8 | // given. 9 | package gitea // import "code.gitea.io/sdk/gitea" 10 | -------------------------------------------------------------------------------- /vendor/code.gitea.io/sdk/gitea/helper.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Gitea Authors. All rights reserved. 2 | // Use of this source code is governed by a MIT-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package gitea 6 | 7 | // OptionalBool convert a bool to a bool reference 8 | func OptionalBool(v bool) *bool { 9 | return &v 10 | } 11 | 12 | // OptionalString convert a string to a string reference 13 | func OptionalString(v string) *string { 14 | return &v 15 | } 16 | 17 | // OptionalInt64 convert a int64 to a int64 reference 18 | func OptionalInt64(v int64) *int64 { 19 | return &v 20 | } 21 | -------------------------------------------------------------------------------- /vendor/code.gitea.io/sdk/gitea/repo_action_variable.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Gitea Authors. All rights reserved. 2 | // Use of this source code is governed by a MIT-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package gitea 6 | 7 | // RepoActionVariable represents a action variable 8 | type RepoActionVariable struct { 9 | OwnerID int64 `json:"owner_id"` 10 | RepoID int64 `json:"repo_id"` 11 | Name string `json:"name"` 12 | Value string `json:"data"` 13 | } 14 | -------------------------------------------------------------------------------- /vendor/code.gitea.io/sdk/gitea/secret.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Gitea Authors. All rights reserved. 2 | // Use of this source code is governed by a MIT-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package gitea 6 | 7 | import "time" 8 | 9 | type Secret struct { 10 | // the secret's name 11 | Name string `json:"name"` 12 | // the secret's data 13 | Data string `json:"data"` 14 | // Date and Time of secret creation 15 | Created time.Time `json:"created_at"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/dario.cat/mergo/.deepsource.toml: -------------------------------------------------------------------------------- 1 | version = 1 2 | 3 | test_patterns = [ 4 | "*_test.go" 5 | ] 6 | 7 | [[analyzers]] 8 | name = "go" 9 | enabled = true 10 | 11 | [analyzers.meta] 12 | import_path = "dario.cat/mergo" -------------------------------------------------------------------------------- /vendor/dario.cat/mergo/.gitignore: -------------------------------------------------------------------------------- 1 | #### joe made this: http://goel.io/joe 2 | 3 | #### go #### 4 | # Binaries for programs and plugins 5 | *.exe 6 | *.dll 7 | *.so 8 | *.dylib 9 | 10 | # Test binary, build with `go test -c` 11 | *.test 12 | 13 | # Output of the go coverage tool, specifically when used with LiteIDE 14 | *.out 15 | 16 | # Golang/Intellij 17 | .idea 18 | 19 | # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 20 | .glide/ 21 | 22 | #### vim #### 23 | # Swap 24 | [._]*.s[a-v][a-z] 25 | [._]*.sw[a-p] 26 | [._]s[a-v][a-z] 27 | [._]sw[a-p] 28 | 29 | # Session 30 | Session.vim 31 | 32 | # Temporary 33 | .netrwhist 34 | *~ 35 | # Auto-generated tag files 36 | tags 37 | -------------------------------------------------------------------------------- /vendor/dario.cat/mergo/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | arch: 3 | - amd64 4 | - ppc64le 5 | install: 6 | - go get -t 7 | - go get golang.org/x/tools/cmd/cover 8 | - go get github.com/mattn/goveralls 9 | script: 10 | - go test -race -v ./... 11 | after_script: 12 | - $HOME/gopath/bin/goveralls -service=travis-ci -repotoken $COVERALLS_TOKEN 13 | -------------------------------------------------------------------------------- /vendor/dario.cat/mergo/FUNDING.json: -------------------------------------------------------------------------------- 1 | { 2 | "drips": { 3 | "ethereum": { 4 | "ownedBy": "0x6160020e7102237aC41bdb156e94401692D76930" 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /vendor/dario.cat/mergo/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | 5 | | Version | Supported | 6 | | ------- | ------------------ | 7 | | 1.x.x | :white_check_mark: | 8 | | < 1.0 | :x: | 9 | 10 | ## Security contact information 11 | 12 | To report a security vulnerability, please use the 13 | [Tidelift security contact](https://tidelift.com/security). 14 | Tidelift will coordinate the fix and disclosure. 15 | -------------------------------------------------------------------------------- /vendor/github.com/42wim/httpsig/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.15 4 | -------------------------------------------------------------------------------- /vendor/github.com/AlecAivazis/survey/v2/filter.go: -------------------------------------------------------------------------------- 1 | package survey 2 | -------------------------------------------------------------------------------- /vendor/github.com/AlecAivazis/survey/v2/terminal/README.md: -------------------------------------------------------------------------------- 1 | # survey/terminal 2 | 3 | This package started as a copy of [kokuban/go-ansi](http://github.com/k0kubun/go-ansi) but has since been modified to fit survey's specific needs. 4 | -------------------------------------------------------------------------------- /vendor/github.com/AlecAivazis/survey/v2/terminal/buffered_reader.go: -------------------------------------------------------------------------------- 1 | package terminal 2 | 3 | import ( 4 | "bytes" 5 | "io" 6 | ) 7 | 8 | type BufferedReader struct { 9 | In io.Reader 10 | Buffer *bytes.Buffer 11 | } 12 | 13 | func (br *BufferedReader) Read(p []byte) (int, error) { 14 | n, err := br.Buffer.Read(p) 15 | if err != nil && err != io.EOF { 16 | return n, err 17 | } else if err == nil { 18 | return n, nil 19 | } 20 | 21 | return br.In.Read(p[n:]) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/AlecAivazis/survey/v2/terminal/display.go: -------------------------------------------------------------------------------- 1 | package terminal 2 | 3 | type EraseLineMode int 4 | 5 | const ( 6 | ERASE_LINE_END EraseLineMode = iota 7 | ERASE_LINE_START 8 | ERASE_LINE_ALL 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/github.com/AlecAivazis/survey/v2/terminal/display_posix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package terminal 5 | 6 | import ( 7 | "fmt" 8 | ) 9 | 10 | func EraseLine(out FileWriter, mode EraseLineMode) error { 11 | _, err := fmt.Fprintf(out, "\x1b[%dK", mode) 12 | return err 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/AlecAivazis/survey/v2/terminal/error.go: -------------------------------------------------------------------------------- 1 | package terminal 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | var ( 8 | //lint:ignore ST1012 keeping old name for backwards compatibility 9 | InterruptErr = errors.New("interrupt") 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/github.com/AlecAivazis/survey/v2/terminal/output.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package terminal 5 | 6 | import ( 7 | "io" 8 | ) 9 | 10 | // NewAnsiStdout returns special stdout, which converts escape sequences to Windows API calls 11 | // on Windows environment. 12 | func NewAnsiStdout(out FileWriter) io.Writer { 13 | return out 14 | } 15 | 16 | // NewAnsiStderr returns special stderr, which converts escape sequences to Windows API calls 17 | // on Windows environment. 18 | func NewAnsiStderr(out FileWriter) io.Writer { 19 | return out 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/AlecAivazis/survey/v2/terminal/runereader_bsd.go: -------------------------------------------------------------------------------- 1 | // copied from: https://github.com/golang/crypto/blob/master/ssh/terminal/util_bsd.go 2 | // Copyright 2013 The Go Authors. All rights reserved. 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | //go:build darwin || dragonfly || freebsd || netbsd || openbsd 7 | // +build darwin dragonfly freebsd netbsd openbsd 8 | 9 | package terminal 10 | 11 | import "syscall" 12 | 13 | const ioctlReadTermios = syscall.TIOCGETA 14 | const ioctlWriteTermios = syscall.TIOCSETA 15 | -------------------------------------------------------------------------------- /vendor/github.com/AlecAivazis/survey/v2/terminal/runereader_linux.go: -------------------------------------------------------------------------------- 1 | // copied from https://github.com/golang/crypto/blob/master/ssh/terminal/util_linux.go 2 | // Copyright 2013 The Go Authors. All rights reserved. 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | //go:build linux && !ppc64le 6 | // +build linux,!ppc64le 7 | 8 | package terminal 9 | 10 | // These constants are declared here, rather than importing 11 | // them from the syscall package as some syscall packages, even 12 | // on linux, for example gccgo, do not declare them. 13 | const ioctlReadTermios = 0x5401 // syscall.TCGETS 14 | const ioctlWriteTermios = 0x5402 // syscall.TCSETS 15 | -------------------------------------------------------------------------------- /vendor/github.com/AlecAivazis/survey/v2/terminal/runereader_ppc64le.go: -------------------------------------------------------------------------------- 1 | //go:build ppc64le && linux 2 | // +build ppc64le,linux 3 | 4 | package terminal 5 | 6 | // Used syscall numbers from https://github.com/golang/go/blob/master/src/syscall/ztypes_linux_ppc64le.go 7 | const ioctlReadTermios = 0x402c7413 // syscall.TCGETS 8 | const ioctlWriteTermios = 0x802c7414 // syscall.TCSETS 9 | -------------------------------------------------------------------------------- /vendor/github.com/AlecAivazis/survey/v2/terminal/stdio.go: -------------------------------------------------------------------------------- 1 | package terminal 2 | 3 | import ( 4 | "io" 5 | ) 6 | 7 | // Stdio is the standard input/output the terminal reads/writes with. 8 | type Stdio struct { 9 | In FileReader 10 | Out FileWriter 11 | Err io.Writer 12 | } 13 | 14 | // FileWriter provides a minimal interface for Stdin. 15 | type FileWriter interface { 16 | io.Writer 17 | Fd() uintptr 18 | } 19 | 20 | // FileReader provides a minimal interface for Stdout. 21 | type FileReader interface { 22 | io.Reader 23 | Fd() uintptr 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/AlecAivazis/survey/v2/terminal/terminal.go: -------------------------------------------------------------------------------- 1 | package terminal 2 | 3 | type Short int16 4 | 5 | type Coord struct { 6 | X Short 7 | Y Short 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/Masterminds/semver/v3/.gitignore: -------------------------------------------------------------------------------- 1 | _fuzz/ -------------------------------------------------------------------------------- /vendor/github.com/Masterminds/semver/v3/.golangci.yml: -------------------------------------------------------------------------------- 1 | run: 2 | deadline: 2m 3 | 4 | linters: 5 | disable-all: true 6 | enable: 7 | - misspell 8 | - govet 9 | - staticcheck 10 | - errcheck 11 | - unparam 12 | - ineffassign 13 | - nakedret 14 | - gocyclo 15 | - dupl 16 | - goimports 17 | - revive 18 | - gosec 19 | - gosimple 20 | - typecheck 21 | - unused 22 | 23 | linters-settings: 24 | gofmt: 25 | simplify: true 26 | dupl: 27 | threshold: 600 28 | -------------------------------------------------------------------------------- /vendor/github.com/Masterminds/semver/v3/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | 5 | The following versions of semver are currently supported: 6 | 7 | | Version | Supported | 8 | | ------- | ------------------ | 9 | | 3.x | :white_check_mark: | 10 | | 2.x | :x: | 11 | | 1.x | :x: | 12 | 13 | Fixes are only released for the latest minor version in the form of a patch release. 14 | 15 | ## Reporting a Vulnerability 16 | 17 | You can privately disclose a vulnerability through GitHubs 18 | [private vulnerability reporting](https://github.com/Masterminds/semver/security/advisories) 19 | mechanism. 20 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/.gitignore: -------------------------------------------------------------------------------- 1 | .vscode/ 2 | 3 | *.exe 4 | 5 | # testing 6 | testdata 7 | 8 | # go workspaces 9 | go.work 10 | go.work.sum 11 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @microsoft/containerplat 2 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/internal/fs/doc.go: -------------------------------------------------------------------------------- 1 | // This package contains Win32 filesystem functionality. 2 | package fs 3 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/internal/fs/security.go: -------------------------------------------------------------------------------- 1 | package fs 2 | 3 | // https://learn.microsoft.com/en-us/windows/win32/api/winnt/ne-winnt-security_impersonation_level 4 | type SecurityImpersonationLevel int32 // C default enums underlying type is `int`, which is Go `int32` 5 | 6 | // Impersonation levels 7 | const ( 8 | SecurityAnonymous SecurityImpersonationLevel = 0 9 | SecurityIdentification SecurityImpersonationLevel = 1 10 | SecurityImpersonation SecurityImpersonationLevel = 2 11 | SecurityDelegation SecurityImpersonationLevel = 3 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/pkg/guid/guid_nonwindows.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package guid 5 | 6 | // GUID represents a GUID/UUID. It has the same structure as 7 | // golang.org/x/sys/windows.GUID so that it can be used with functions expecting 8 | // that type. It is defined as its own type as that is only available to builds 9 | // targeted at `windows`. The representation matches that used by native Windows 10 | // code. 11 | type GUID struct { 12 | Data1 uint32 13 | Data2 uint16 14 | Data3 uint16 15 | Data4 [8]byte 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/pkg/guid/guid_windows.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | // +build windows 3 | 4 | package guid 5 | 6 | import "golang.org/x/sys/windows" 7 | 8 | // GUID represents a GUID/UUID. It has the same structure as 9 | // golang.org/x/sys/windows.GUID so that it can be used with functions expecting 10 | // that type. It is defined as its own type so that stringification and 11 | // marshaling can be supported. The representation matches that used by native 12 | // Windows code. 13 | type GUID windows.GUID 14 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/syscall.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | 3 | package winio 4 | 5 | //go:generate go run github.com/Microsoft/go-winio/tools/mkwinsyscall -output zsyscall_windows.go ./*.go 6 | -------------------------------------------------------------------------------- /vendor/github.com/ProtonMail/go-crypto/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at https://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/ProtonMail/go-crypto/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at https://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/ProtonMail/go-crypto/openpgp/hash.go: -------------------------------------------------------------------------------- 1 | package openpgp 2 | 3 | import ( 4 | "crypto" 5 | 6 | "github.com/ProtonMail/go-crypto/openpgp/internal/algorithm" 7 | ) 8 | 9 | // HashIdToHash returns a crypto.Hash which corresponds to the given OpenPGP 10 | // hash id. 11 | func HashIdToHash(id byte) (h crypto.Hash, ok bool) { 12 | return algorithm.HashIdToHash(id) 13 | } 14 | 15 | // HashIdToString returns the name of the hash function corresponding to the 16 | // given OpenPGP hash id. 17 | func HashIdToString(id byte) (name string, ok bool) { 18 | return algorithm.HashIdToString(id) 19 | } 20 | 21 | // HashToHashId returns an OpenPGP hash id which corresponds the given Hash. 22 | func HashToHashId(h crypto.Hash) (id byte, ok bool) { 23 | return algorithm.HashToHashId(h) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/ProtonMail/go-crypto/openpgp/packet/config_v5.go: -------------------------------------------------------------------------------- 1 | //go:build !v5 2 | 3 | package packet 4 | 5 | func init() { 6 | V5Disabled = true 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/ProtonMail/go-crypto/openpgp/packet/packet_unsupported.go: -------------------------------------------------------------------------------- 1 | package packet 2 | 3 | import ( 4 | "io" 5 | 6 | "github.com/ProtonMail/go-crypto/openpgp/errors" 7 | ) 8 | 9 | // UnsupportedPackage represents a OpenPGP packet with a known packet type 10 | // but with unsupported content. 11 | type UnsupportedPacket struct { 12 | IncompletePacket Packet 13 | Error errors.UnsupportedError 14 | } 15 | 16 | // Implements the Packet interface 17 | func (up *UnsupportedPacket) parse(read io.Reader) error { 18 | err := up.IncompletePacket.parse(read) 19 | if castedErr, ok := err.(errors.UnsupportedError); ok { 20 | up.Error = castedErr 21 | return nil 22 | } 23 | return err 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/ProtonMail/go-crypto/openpgp/packet/recipient.go: -------------------------------------------------------------------------------- 1 | package packet 2 | 3 | // Recipient type represents a Intended Recipient Fingerprint subpacket 4 | // See https://datatracker.ietf.org/doc/html/draft-ietf-openpgp-crypto-refresh#name-intended-recipient-fingerpr 5 | type Recipient struct { 6 | KeyVersion int 7 | Fingerprint []byte 8 | } 9 | 10 | func (r *Recipient) Serialize() []byte { 11 | packet := make([]byte, len(r.Fingerprint)+1) 12 | packet[0] = byte(r.KeyVersion) 13 | copy(packet[1:], r.Fingerprint) 14 | return packet 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/blang/semver/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | matrix: 3 | include: 4 | - go: 1.4.3 5 | - go: 1.5.4 6 | - go: 1.6.3 7 | - go: 1.7 8 | - go: tip 9 | allow_failures: 10 | - go: tip 11 | install: 12 | - go get golang.org/x/tools/cmd/cover 13 | - go get github.com/mattn/goveralls 14 | script: 15 | - echo "Test and track coverage" ; $HOME/gopath/bin/goveralls -package "." -service=travis-ci 16 | -repotoken $COVERALLS_TOKEN 17 | - echo "Build examples" ; cd examples && go build 18 | - echo "Check if gofmt'd" ; diff -u <(echo -n) <(gofmt -d -s .) 19 | env: 20 | global: 21 | secure: HroGEAUQpVq9zX1b1VIkraLiywhGbzvNnTZq2TMxgK7JHP8xqNplAeF1izrR2i4QLL9nsY+9WtYss4QuPvEtZcVHUobw6XnL6radF7jS1LgfYZ9Y7oF+zogZ2I5QUMRLGA7rcxQ05s7mKq3XZQfeqaNts4bms/eZRefWuaFZbkw= 22 | -------------------------------------------------------------------------------- /vendor/github.com/blang/semver/json.go: -------------------------------------------------------------------------------- 1 | package semver 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | // MarshalJSON implements the encoding/json.Marshaler interface. 8 | func (v Version) MarshalJSON() ([]byte, error) { 9 | return json.Marshal(v.String()) 10 | } 11 | 12 | // UnmarshalJSON implements the encoding/json.Unmarshaler interface. 13 | func (v *Version) UnmarshalJSON(data []byte) (err error) { 14 | var versionString string 15 | 16 | if err = json.Unmarshal(data, &versionString); err != nil { 17 | return 18 | } 19 | 20 | *v, err = Parse(versionString) 21 | 22 | return 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/blang/semver/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "blang", 3 | "bugs": { 4 | "URL": "https://github.com/blang/semver/issues", 5 | "url": "https://github.com/blang/semver/issues" 6 | }, 7 | "gx": { 8 | "dvcsimport": "github.com/blang/semver" 9 | }, 10 | "gxVersion": "0.10.0", 11 | "language": "go", 12 | "license": "MIT", 13 | "name": "semver", 14 | "releaseCmd": "git commit -a -m \"gx publish $VERSION\"", 15 | "version": "3.5.1" 16 | } 17 | 18 | -------------------------------------------------------------------------------- /vendor/github.com/blang/semver/sort.go: -------------------------------------------------------------------------------- 1 | package semver 2 | 3 | import ( 4 | "sort" 5 | ) 6 | 7 | // Versions represents multiple versions. 8 | type Versions []Version 9 | 10 | // Len returns length of version collection 11 | func (s Versions) Len() int { 12 | return len(s) 13 | } 14 | 15 | // Swap swaps two versions inside the collection by its indices 16 | func (s Versions) Swap(i, j int) { 17 | s[i], s[j] = s[j], s[i] 18 | } 19 | 20 | // Less checks if version at index i is less than version at index j 21 | func (s Versions) Less(i, j int) bool { 22 | return s[i].LT(s[j]) 23 | } 24 | 25 | // Sort sorts a slice of versions 26 | func Sort(versions []Version) { 27 | sort.Sort(Versions(versions)) 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/blang/semver/sql.go: -------------------------------------------------------------------------------- 1 | package semver 2 | 3 | import ( 4 | "database/sql/driver" 5 | "fmt" 6 | ) 7 | 8 | // Scan implements the database/sql.Scanner interface. 9 | func (v *Version) Scan(src interface{}) (err error) { 10 | var str string 11 | switch src := src.(type) { 12 | case string: 13 | str = src 14 | case []byte: 15 | str = string(src) 16 | default: 17 | return fmt.Errorf("Version.Scan: cannot convert %T to string.", src) 18 | } 19 | 20 | if t, err := Parse(str); err == nil { 21 | *v = t 22 | } 23 | 24 | return 25 | } 26 | 27 | // Value implements the database/sql/driver.Valuer interface. 28 | func (v Version) Value() (driver.Value, error) { 29 | return v.String(), nil 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/colorprofile/.goreleaser.yml: -------------------------------------------------------------------------------- 1 | includes: 2 | - from_url: 3 | url: charmbracelet/meta/main/goreleaser-lib.yaml 4 | 5 | # yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json 6 | 7 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/colorprofile/doc.go: -------------------------------------------------------------------------------- 1 | // Package colorprofile provides a way to downsample ANSI escape sequence 2 | // colors and styles automatically based on output, environment variables, and 3 | // Terminfo databases. 4 | package colorprofile 5 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/colorprofile/env_other.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package colorprofile 5 | 6 | func windowsColorProfile(map[string]string) (Profile, bool) { 7 | return 0, false 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/lipgloss/.gitignore: -------------------------------------------------------------------------------- 1 | ssh_example_ed25519* 2 | dist/ 3 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/lipgloss/.golangci.yml: -------------------------------------------------------------------------------- 1 | run: 2 | tests: false 3 | 4 | issues: 5 | include: 6 | - EXC0001 7 | - EXC0005 8 | - EXC0011 9 | - EXC0012 10 | - EXC0013 11 | 12 | max-issues-per-linter: 0 13 | max-same-issues: 0 14 | 15 | linters: 16 | enable: 17 | - bodyclose 18 | - exhaustive 19 | - goconst 20 | - godot 21 | - godox 22 | - gofumpt 23 | - goimports 24 | - gomoddirectives 25 | - goprintffuncname 26 | - gosec 27 | - misspell 28 | - nakedret 29 | - nestif 30 | - nilerr 31 | - noctx 32 | - nolintlint 33 | - prealloc 34 | - revive 35 | - rowserrcheck 36 | - sqlclosecheck 37 | - tparallel 38 | - unconvert 39 | - unparam 40 | - whitespace 41 | - wrapcheck 42 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/lipgloss/.goreleaser.yml: -------------------------------------------------------------------------------- 1 | # yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json 2 | version: 2 3 | includes: 4 | - from_url: 5 | url: charmbracelet/meta/main/goreleaser-lib.yaml 6 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/lipgloss/Taskfile.yaml: -------------------------------------------------------------------------------- 1 | # https://taskfile.dev 2 | 3 | version: '3' 4 | 5 | tasks: 6 | lint: 7 | desc: Run base linters 8 | cmds: 9 | - golangci-lint run 10 | 11 | test: 12 | desc: Run tests 13 | cmds: 14 | - go test ./... {{.CLI_ARGS}} 15 | 16 | test:table: 17 | desc: Run table tests 18 | cmds: 19 | - go test ./table {{.CLI_ARGS}} 20 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/lipgloss/ansi_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package lipgloss 5 | 6 | // enableLegacyWindowsANSI is only needed on Windows. 7 | func enableLegacyWindowsANSI() {} 8 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/lipgloss/ansi_windows.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | // +build windows 3 | 4 | package lipgloss 5 | 6 | import ( 7 | "sync" 8 | 9 | "github.com/muesli/termenv" 10 | ) 11 | 12 | var enableANSI sync.Once 13 | 14 | // enableANSIColors enables support for ANSI color sequences in the Windows 15 | // default console (cmd.exe and the PowerShell application). Note that this 16 | // only works with Windows 10. Also note that Windows Terminal supports colors 17 | // by default. 18 | func enableLegacyWindowsANSI() { 19 | enableANSI.Do(func() { 20 | _, _ = termenv.EnableWindowsANSIConsole() 21 | }) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/x/ansi/ansi.go: -------------------------------------------------------------------------------- 1 | package ansi 2 | 3 | import "io" 4 | 5 | // Execute is a function that "execute" the given escape sequence by writing it 6 | // to the provided output writter. 7 | // 8 | // This is a syntactic sugar over [io.WriteString]. 9 | func Execute(w io.Writer, s string) (int, error) { 10 | return io.WriteString(w, s) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/x/ansi/ascii.go: -------------------------------------------------------------------------------- 1 | package ansi 2 | 3 | const ( 4 | // SP is the space character (Char: \x20). 5 | SP = 0x20 6 | // DEL is the delete character (Caret: ^?, Char: \x7f). 7 | DEL = 0x7F 8 | ) 9 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/x/ansi/doc.go: -------------------------------------------------------------------------------- 1 | // Package ansi defines common ANSI escape sequences based on the ECMA-48 2 | // specs. 3 | // 4 | // All sequences use 7-bit C1 control codes, which are supported by most 5 | // terminal emulators. OSC sequences are terminated by a BEL for wider 6 | // compatibility with terminals. 7 | package ansi 8 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/x/ansi/focus.go: -------------------------------------------------------------------------------- 1 | package ansi 2 | 3 | // Focus is an escape sequence to notify the terminal that it has focus. 4 | // This is used with [FocusEventMode]. 5 | const Focus = "\x1b[I" 6 | 7 | // Blur is an escape sequence to notify the terminal that it has lost focus. 8 | // This is used with [FocusEventMode]. 9 | const Blur = "\x1b[O" 10 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/x/ansi/iterm2.go: -------------------------------------------------------------------------------- 1 | package ansi 2 | 3 | import "fmt" 4 | 5 | // ITerm2 returns a sequence that uses the iTerm2 proprietary protocol. Use the 6 | // iterm2 package for a more convenient API. 7 | // 8 | // OSC 1337 ; key = value ST 9 | // 10 | // Example: 11 | // 12 | // ITerm2(iterm2.File{...}) 13 | // 14 | // See https://iterm2.com/documentation-escape-codes.html 15 | // See https://iterm2.com/documentation-images.html 16 | func ITerm2(data any) string { 17 | return "\x1b]1337;" + fmt.Sprint(data) + "\x07" 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/x/ansi/notification.go: -------------------------------------------------------------------------------- 1 | package ansi 2 | 3 | // Notify sends a desktop notification using iTerm's OSC 9. 4 | // 5 | // OSC 9 ; Mc ST 6 | // OSC 9 ; Mc BEL 7 | // 8 | // Where Mc is the notification body. 9 | // 10 | // See: https://iterm2.com/documentation-escape-codes.html 11 | func Notify(s string) string { 12 | return "\x1b]9;" + s + "\x07" 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/x/ansi/parser_sync.go: -------------------------------------------------------------------------------- 1 | package ansi 2 | 3 | import ( 4 | "sync" 5 | 6 | "github.com/charmbracelet/x/ansi/parser" 7 | ) 8 | 9 | var parserPool = sync.Pool{ 10 | New: func() any { 11 | p := NewParser() 12 | p.SetParamsSize(parser.MaxParamsSize) 13 | p.SetDataSize(1024 * 1024 * 4) // 4MB of data buffer 14 | return p 15 | }, 16 | } 17 | 18 | // GetParser returns a parser from a sync pool. 19 | func GetParser() *Parser { 20 | return parserPool.Get().(*Parser) 21 | } 22 | 23 | // PutParser returns a parser to a sync pool. The parser is reset 24 | // automatically. 25 | func PutParser(p *Parser) { 26 | p.Reset() 27 | p.dataLen = 0 28 | parserPool.Put(p) 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/x/ansi/paste.go: -------------------------------------------------------------------------------- 1 | package ansi 2 | 3 | // BracketedPasteStart is the control sequence to enable bracketed paste mode. 4 | const BracketedPasteStart = "\x1b[200~" 5 | 6 | // BracketedPasteEnd is the control sequence to disable bracketed paste mode. 7 | const BracketedPasteEnd = "\x1b[201~" 8 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/x/ansi/reset.go: -------------------------------------------------------------------------------- 1 | package ansi 2 | 3 | // ResetInitialState (RIS) resets the terminal to its initial state. 4 | // 5 | // ESC c 6 | // 7 | // See: https://vt100.net/docs/vt510-rm/RIS.html 8 | const ( 9 | ResetInitialState = "\x1bc" 10 | RIS = ResetInitialState 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/x/cellbuf/errors.go: -------------------------------------------------------------------------------- 1 | package cellbuf 2 | 3 | import "errors" 4 | 5 | // ErrOutOfBounds is returned when the given x, y position is out of bounds. 6 | var ErrOutOfBounds = errors.New("out of bounds") 7 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/x/cellbuf/geom.go: -------------------------------------------------------------------------------- 1 | package cellbuf 2 | 3 | import ( 4 | "image" 5 | ) 6 | 7 | // Position represents an x, y position. 8 | type Position = image.Point 9 | 10 | // Pos is a shorthand for Position{X: x, Y: y}. 11 | func Pos(x, y int) Position { 12 | return image.Pt(x, y) 13 | } 14 | 15 | // Rectange represents a rectangle. 16 | type Rectangle = image.Rectangle 17 | 18 | // Rect is a shorthand for Rectangle. 19 | func Rect(x, y, w, h int) Rectangle { 20 | return image.Rect(x, y, x+w, y+h) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/x/cellbuf/link.go: -------------------------------------------------------------------------------- 1 | package cellbuf 2 | 3 | import ( 4 | "github.com/charmbracelet/colorprofile" 5 | ) 6 | 7 | // Convert converts a hyperlink to respect the given color profile. 8 | func ConvertLink(h Link, p colorprofile.Profile) Link { 9 | if p == colorprofile.NoTTY { 10 | return Link{} 11 | } 12 | 13 | return h 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/x/cellbuf/style.go: -------------------------------------------------------------------------------- 1 | package cellbuf 2 | 3 | import ( 4 | "github.com/charmbracelet/colorprofile" 5 | ) 6 | 7 | // Convert converts a style to respect the given color profile. 8 | func ConvertStyle(s Style, p colorprofile.Profile) Style { 9 | switch p { 10 | case colorprofile.TrueColor: 11 | return s 12 | case colorprofile.Ascii: 13 | s.Fg = nil 14 | s.Bg = nil 15 | s.Ul = nil 16 | case colorprofile.NoTTY: 17 | return Style{} 18 | } 19 | 20 | if s.Fg != nil { 21 | s.Fg = p.Convert(s.Fg) 22 | } 23 | if s.Bg != nil { 24 | s.Bg = p.Convert(s.Bg) 25 | } 26 | if s.Ul != nil { 27 | s.Ul = p.Convert(s.Ul) 28 | } 29 | 30 | return s 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/x/cellbuf/utils.go: -------------------------------------------------------------------------------- 1 | package cellbuf 2 | 3 | import ( 4 | "strings" 5 | ) 6 | 7 | // Height returns the height of a string. 8 | func Height(s string) int { 9 | return strings.Count(s, "\n") + 1 10 | } 11 | 12 | func min(a, b int) int { //nolint:predeclared 13 | if a > b { 14 | return b 15 | } 16 | return a 17 | } 18 | 19 | func max(a, b int) int { //nolint:predeclared 20 | if a > b { 21 | return a 22 | } 23 | return b 24 | } 25 | 26 | func clamp(v, low, high int) int { 27 | if high < low { 28 | low, high = high, low 29 | } 30 | return min(high, max(low, v)) 31 | } 32 | 33 | func abs(a int) int { 34 | if a < 0 { 35 | return -a 36 | } 37 | return a 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/x/term/term_unix_bsd.go: -------------------------------------------------------------------------------- 1 | //go:build darwin || dragonfly || freebsd || netbsd || openbsd 2 | // +build darwin dragonfly freebsd netbsd openbsd 3 | 4 | package term 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const ( 9 | ioctlReadTermios = unix.TIOCGETA 10 | ioctlWriteTermios = unix.TIOCSETA 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/x/term/term_unix_other.go: -------------------------------------------------------------------------------- 1 | //go:build aix || linux || solaris || zos 2 | // +build aix linux solaris zos 3 | 4 | package term 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const ( 9 | ioctlReadTermios = unix.TCGETS 10 | ioctlWriteTermios = unix.TCSETS 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/charmbracelet/x/term/terminal.go: -------------------------------------------------------------------------------- 1 | package term 2 | 3 | import ( 4 | "io" 5 | ) 6 | 7 | // File represents a file that has a file descriptor and can be read from, 8 | // written to, and closed. 9 | type File interface { 10 | io.ReadWriteCloser 11 | Fd() uintptr 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/cli/browser/README.md: -------------------------------------------------------------------------------- 1 | 2 | # browser 3 | 4 | Helpers to open URLs, readers, or files in the system default web browser. 5 | 6 | This fork adds: 7 | 8 | - `OpenReader` error wrapping; 9 | - `ErrNotFound` error wrapping on BSD; 10 | - Go 1.21 support. 11 | 12 | ## Usage 13 | 14 | ``` go 15 | import "github.com/cli/browser" 16 | 17 | err = browser.OpenURL(url) 18 | err = browser.OpenFile(path) 19 | err = browser.OpenReader(reader) 20 | ``` 21 | -------------------------------------------------------------------------------- /vendor/github.com/cli/browser/browser_darwin.go: -------------------------------------------------------------------------------- 1 | package browser 2 | 3 | func openBrowser(url string) error { 4 | return runCmd("open", url) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/cli/browser/browser_freebsd.go: -------------------------------------------------------------------------------- 1 | package browser 2 | 3 | import ( 4 | "errors" 5 | "fmt" 6 | "os/exec" 7 | ) 8 | 9 | func openBrowser(url string) error { 10 | err := runCmd("xdg-open", url) 11 | if errors.Is(err, exec.ErrNotFound) { 12 | return fmt.Errorf("%w - install xdg-utils from ports(8)", err) 13 | } 14 | return err 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/cli/browser/browser_linux.go: -------------------------------------------------------------------------------- 1 | package browser 2 | 3 | import ( 4 | "os/exec" 5 | "strings" 6 | ) 7 | 8 | func openBrowser(url string) error { 9 | providers := []string{"xdg-open", "x-www-browser", "www-browser", "wslview"} 10 | 11 | // There are multiple possible providers to open a browser on linux 12 | // One of them is xdg-open, another is x-www-browser, then there's www-browser, etc. 13 | // Look for one that exists and run it 14 | for _, provider := range providers { 15 | if _, err := exec.LookPath(provider); err == nil { 16 | return runCmd(provider, url) 17 | } 18 | } 19 | 20 | return &exec.Error{Name: strings.Join(providers, ","), Err: exec.ErrNotFound} 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/cli/browser/browser_netbsd.go: -------------------------------------------------------------------------------- 1 | package browser 2 | 3 | import ( 4 | "errors" 5 | "os/exec" 6 | ) 7 | 8 | func openBrowser(url string) error { 9 | err := runCmd("xdg-open", url) 10 | if e, ok := err.(*exec.Error); ok && e.Err == exec.ErrNotFound { 11 | return errors.New("xdg-open: command not found - install xdg-utils from pkgsrc(7)") 12 | } 13 | return err 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/cli/browser/browser_openbsd.go: -------------------------------------------------------------------------------- 1 | package browser 2 | 3 | import ( 4 | "errors" 5 | "fmt" 6 | "os/exec" 7 | ) 8 | 9 | func openBrowser(url string) error { 10 | err := runCmd("xdg-open", url) 11 | if errors.Is(err, exec.ErrNotFound) { 12 | return fmt.Errorf("%w - install xdg-utils from ports(8)", err) 13 | } 14 | return err 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/cli/browser/browser_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux,!windows,!darwin,!openbsd,!freebsd,!netbsd 2 | 3 | package browser 4 | 5 | import ( 6 | "fmt" 7 | "runtime" 8 | ) 9 | 10 | func openBrowser(url string) error { 11 | return fmt.Errorf("openBrowser: unsupported operating system: %v", runtime.GOOS) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/cli/browser/browser_windows.go: -------------------------------------------------------------------------------- 1 | package browser 2 | 3 | import "golang.org/x/sys/windows" 4 | 5 | func openBrowser(url string) error { 6 | return windows.ShellExecute(0, nil, windows.StringToUTF16Ptr(url), nil, nil, windows.SW_SHOWNORMAL) 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/cli/go-gh/v2/pkg/term/console.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package term 5 | 6 | import ( 7 | "errors" 8 | "os" 9 | ) 10 | 11 | func enableVirtualTerminalProcessing(f *os.File) error { 12 | return errors.New("not implemented") 13 | } 14 | 15 | func openTTY() (*os.File, error) { 16 | return os.Open("/dev/tty") 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/cli/go-gh/v2/pkg/term/console_windows.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | // +build windows 3 | 4 | package term 5 | 6 | import ( 7 | "os" 8 | 9 | "golang.org/x/sys/windows" 10 | ) 11 | 12 | func enableVirtualTerminalProcessing(f *os.File) error { 13 | stdout := windows.Handle(f.Fd()) 14 | 15 | var originalMode uint32 16 | windows.GetConsoleMode(stdout, &originalMode) 17 | return windows.SetConsoleMode(stdout, originalMode|windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING) 18 | } 19 | 20 | func openTTY() (*os.File, error) { 21 | return os.Open("CONOUT$") 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/cli/safeexec/lookpath.go: -------------------------------------------------------------------------------- 1 | //go:build !windows && go1.19 2 | // +build !windows,go1.19 3 | 4 | package safeexec 5 | 6 | import ( 7 | "errors" 8 | "os/exec" 9 | ) 10 | 11 | func LookPath(file string) (string, error) { 12 | path, err := exec.LookPath(file) 13 | if errors.Is(err, exec.ErrDot) { 14 | return path, nil 15 | } 16 | return path, err 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/cli/safeexec/lookpath_1.18.go: -------------------------------------------------------------------------------- 1 | //go:build !windows && !go1.19 2 | // +build !windows,!go1.19 3 | 4 | package safeexec 5 | 6 | import "os/exec" 7 | 8 | func LookPath(file string) (string, error) { 9 | return exec.LookPath(file) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/cli/shurcooL-graphql/.golangci.yml: -------------------------------------------------------------------------------- 1 | linters: 2 | enable: 3 | - gofmt 4 | - godot 5 | 6 | linters-settings: 7 | godot: 8 | # comments to be checked: `declarations`, `toplevel`, or `all` 9 | scope: declarations 10 | # check that each sentence starts with a capital letter 11 | capital: true 12 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/dh/x25519/curve_noasm.go: -------------------------------------------------------------------------------- 1 | //go:build !amd64 || purego 2 | // +build !amd64 purego 3 | 4 | package x25519 5 | 6 | import fp "github.com/cloudflare/circl/math/fp25519" 7 | 8 | func double(x, z *fp.Elt) { doubleGeneric(x, z) } 9 | func diffAdd(w *[5]fp.Elt, b uint) { diffAddGeneric(w, b) } 10 | func ladderStep(w *[5]fp.Elt, b uint) { ladderStepGeneric(w, b) } 11 | func mulA24(z, x *fp.Elt) { mulA24Generic(z, x) } 12 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/dh/x448/curve_noasm.go: -------------------------------------------------------------------------------- 1 | //go:build !amd64 || purego 2 | // +build !amd64 purego 3 | 4 | package x448 5 | 6 | import fp "github.com/cloudflare/circl/math/fp448" 7 | 8 | func double(x, z *fp.Elt) { doubleGeneric(x, z) } 9 | func diffAdd(w *[5]fp.Elt, b uint) { diffAddGeneric(w, b) } 10 | func ladderStep(w *[5]fp.Elt, b uint) { ladderStepGeneric(w, b) } 11 | func mulA24(z, x *fp.Elt) { mulA24Generic(z, x) } 12 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/internal/sha3/rc.go: -------------------------------------------------------------------------------- 1 | package sha3 2 | 3 | // RC stores the round constants for use in the ι step. 4 | var RC = [24]uint64{ 5 | 0x0000000000000001, 6 | 0x0000000000008082, 7 | 0x800000000000808A, 8 | 0x8000000080008000, 9 | 0x000000000000808B, 10 | 0x0000000080000001, 11 | 0x8000000080008081, 12 | 0x8000000000008009, 13 | 0x000000000000008A, 14 | 0x0000000000000088, 15 | 0x0000000080008009, 16 | 0x000000008000000A, 17 | 0x000000008000808B, 18 | 0x800000000000008B, 19 | 0x8000000000008089, 20 | 0x8000000000008003, 21 | 0x8000000000008002, 22 | 0x8000000000000080, 23 | 0x000000000000800A, 24 | 0x800000008000000A, 25 | 0x8000000080008081, 26 | 0x8000000000008080, 27 | 0x0000000080000001, 28 | 0x8000000080008008, 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/internal/sha3/xor.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (!amd64 && !386 && !ppc64le) || appengine 6 | // +build !amd64,!386,!ppc64le appengine 7 | 8 | package sha3 9 | 10 | // A storageBuf is an aligned array of maxRate bytes. 11 | type storageBuf [maxRate]byte 12 | 13 | func (b *storageBuf) asBytes() *[maxRate]byte { 14 | return (*[maxRate]byte)(b) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/math/fp25519/fp_noasm.go: -------------------------------------------------------------------------------- 1 | //go:build !amd64 || purego 2 | // +build !amd64 purego 3 | 4 | package fp25519 5 | 6 | func cmov(x, y *Elt, n uint) { cmovGeneric(x, y, n) } 7 | func cswap(x, y *Elt, n uint) { cswapGeneric(x, y, n) } 8 | func add(z, x, y *Elt) { addGeneric(z, x, y) } 9 | func sub(z, x, y *Elt) { subGeneric(z, x, y) } 10 | func addsub(x, y *Elt) { addsubGeneric(x, y) } 11 | func mul(z, x, y *Elt) { mulGeneric(z, x, y) } 12 | func sqr(z, x *Elt) { sqrGeneric(z, x) } 13 | func modp(z *Elt) { modpGeneric(z) } 14 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/math/fp448/fp_noasm.go: -------------------------------------------------------------------------------- 1 | //go:build !amd64 || purego 2 | // +build !amd64 purego 3 | 4 | package fp448 5 | 6 | func cmov(x, y *Elt, n uint) { cmovGeneric(x, y, n) } 7 | func cswap(x, y *Elt, n uint) { cswapGeneric(x, y, n) } 8 | func add(z, x, y *Elt) { addGeneric(z, x, y) } 9 | func sub(z, x, y *Elt) { subGeneric(z, x, y) } 10 | func addsub(x, y *Elt) { addsubGeneric(x, y) } 11 | func mul(z, x, y *Elt) { mulGeneric(z, x, y) } 12 | func sqr(z, x *Elt) { sqrGeneric(z, x) } 13 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/math/integer.go: -------------------------------------------------------------------------------- 1 | package math 2 | 3 | import "math/bits" 4 | 5 | // NextPow2 finds the next power of two (N=2^k, k>=0) greater than n. 6 | // If n is already a power of two, then this function returns n, and log2(n). 7 | func NextPow2(n uint) (N uint, k uint) { 8 | if bits.OnesCount(n) == 1 { 9 | k = uint(bits.TrailingZeros(n)) 10 | N = n 11 | } else { 12 | k = uint(bits.Len(n)) 13 | N = uint(1) << k 14 | } 15 | return 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/sign/ed25519/pubkey.go: -------------------------------------------------------------------------------- 1 | //go:build go1.13 2 | // +build go1.13 3 | 4 | package ed25519 5 | 6 | import cryptoEd25519 "crypto/ed25519" 7 | 8 | // PublicKey is the type of Ed25519 public keys. 9 | type PublicKey cryptoEd25519.PublicKey 10 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/sign/ed25519/pubkey112.go: -------------------------------------------------------------------------------- 1 | //go:build !go1.13 2 | // +build !go1.13 3 | 4 | package ed25519 5 | 6 | // PublicKey is the type of Ed25519 public keys. 7 | type PublicKey []byte 8 | -------------------------------------------------------------------------------- /vendor/github.com/creativeprojects/go-selfupdate/.gitignore: -------------------------------------------------------------------------------- 1 | /selfupdate-example 2 | /release 3 | /env.sh 4 | /detect-latest-release 5 | /go-get-release 6 | /coverage.out 7 | /coverage.txt 8 | /cmd/restic 9 | /.vscode/ 10 | -------------------------------------------------------------------------------- /vendor/github.com/creativeprojects/go-selfupdate/.golangci.yml: -------------------------------------------------------------------------------- 1 | linters: 2 | enable: 3 | - asasalint 4 | - asciicheck 5 | - bidichk 6 | - bodyclose 7 | - contextcheck 8 | - errname 9 | - gocheckcompilerdirectives 10 | - gosec 11 | - maintidx 12 | - misspell 13 | - nilnil 14 | - noctx 15 | - nolintlint 16 | - predeclared 17 | - reassign 18 | - sloglint 19 | - spancheck 20 | - unconvert 21 | - unparam 22 | - usestdlibvars 23 | 24 | linters-settings: 25 | gosec: 26 | excludes: 27 | - G101 # Potential hardcoded credentials 28 | staticcheck: 29 | checks: ["all", "-SA1019"] # "golang.org/x/crypto/openpgp" is deprecated 30 | -------------------------------------------------------------------------------- /vendor/github.com/creativeprojects/go-selfupdate/arm.go: -------------------------------------------------------------------------------- 1 | package selfupdate 2 | 3 | import ( 4 | "debug/buildinfo" 5 | ) 6 | 7 | func getGOARM(goBinary string) uint8 { 8 | build, err := buildinfo.ReadFile(goBinary) 9 | if err != nil { 10 | return 0 11 | } 12 | for _, setting := range build.Settings { 13 | if setting.Key == "GOARM" { 14 | // the value is coming from the linker, so it should be safe to convert 15 | return setting.Value[0] - '0' 16 | } 17 | } 18 | return 0 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/creativeprojects/go-selfupdate/codecov.yml: -------------------------------------------------------------------------------- 1 | codecov: 2 | notify: 3 | after_n_builds: 3 4 | 5 | comment: 6 | after_n_builds: 3 7 | 8 | coverage: 9 | round: nearest 10 | status: 11 | project: 12 | default: 13 | target: auto 14 | threshold: "2%" 15 | patch: 16 | default: 17 | target: "70%" 18 | threshold: "2%" 19 | -------------------------------------------------------------------------------- /vendor/github.com/creativeprojects/go-selfupdate/internal/path.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | import ( 4 | "os" 5 | ) 6 | 7 | // GetExecutablePath returns the path of the executable file with all symlinks resolved. 8 | func GetExecutablePath() (string, error) { 9 | exe, err := os.Executable() 10 | if err != nil { 11 | return "", err 12 | } 13 | 14 | exe, err = ResolvePath(exe) 15 | if err != nil { 16 | return "", err 17 | } 18 | 19 | return exe, nil 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/creativeprojects/go-selfupdate/internal/resolve_path_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | 3 | package internal 4 | 5 | import ( 6 | "path/filepath" 7 | ) 8 | 9 | // ResolvePath returns the path of a given filename with all symlinks resolved. 10 | func ResolvePath(filename string) (string, error) { 11 | finalPath, err := filepath.EvalSymlinks(filename) 12 | if err != nil { 13 | return "", err 14 | } 15 | 16 | return finalPath, nil 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/creativeprojects/go-selfupdate/path.go: -------------------------------------------------------------------------------- 1 | package selfupdate 2 | 3 | import "github.com/creativeprojects/go-selfupdate/internal" 4 | 5 | func ExecutablePath() (string, error) { 6 | return internal.GetExecutablePath() 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/creativeprojects/go-selfupdate/repository.go: -------------------------------------------------------------------------------- 1 | package selfupdate 2 | 3 | type Repository interface { 4 | GetSlug() (string, string, error) 5 | Get() (interface{}, error) 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/creativeprojects/go-selfupdate/repository_id.go: -------------------------------------------------------------------------------- 1 | package selfupdate 2 | 3 | type RepositoryID int 4 | 5 | // Repository interface 6 | var _ Repository = RepositoryID(0) 7 | 8 | // NewRepositoryID creates a repository ID from an integer 9 | func NewRepositoryID(id int) RepositoryID { 10 | return RepositoryID(id) 11 | } 12 | 13 | func (r RepositoryID) GetSlug() (string, string, error) { 14 | return "", "", ErrInvalidID 15 | } 16 | 17 | func (r RepositoryID) Get() (interface{}, error) { 18 | return int(r), nil 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/creativeprojects/go-selfupdate/sonar-project.properties: -------------------------------------------------------------------------------- 1 | sonar.organization=creativeprojects 2 | sonar.projectKey=creativeprojects_go-selfupdate 3 | sonar.projectName=go-selfupdate 4 | sonar.projectVersion=1.4.1 5 | 6 | sonar.sources=. 7 | sonar.exclusions=**/*_test.go,/docs/** 8 | 9 | sonar.tests=. 10 | sonar.test.inclusions=**/*_test.go 11 | sonar.go.coverage.reportPaths=**/coverage.txt 12 | -------------------------------------------------------------------------------- /vendor/github.com/creativeprojects/go-selfupdate/token.go: -------------------------------------------------------------------------------- 1 | package selfupdate 2 | 3 | import ( 4 | "net/url" 5 | "strings" 6 | ) 7 | 8 | // canUseTokenForDomain returns true if other URL is in the same domain as origin URL 9 | func canUseTokenForDomain(origin, other string) (bool, error) { 10 | originURL, err := url.Parse(origin) 11 | if err != nil { 12 | return false, err 13 | } 14 | otherURL, err := url.Parse(other) 15 | if err != nil { 16 | return false, err 17 | } 18 | return originURL.Hostname() != "" && strings.HasSuffix(otherURL.Hostname(), originURL.Hostname()), nil 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/creativeprojects/go-selfupdate/universal_binary.go: -------------------------------------------------------------------------------- 1 | package selfupdate 2 | 3 | import "debug/macho" 4 | 5 | // IsDarwinUniversalBinary checks if the file is a universal binary (also called a fat binary). 6 | func IsDarwinUniversalBinary(filename string) bool { 7 | file, err := macho.OpenFat(filename) 8 | if err == nil { 9 | file.Close() 10 | return true 11 | } 12 | return false 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/creativeprojects/go-selfupdate/update/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2015 Alan Shreve 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/github.com/creativeprojects/go-selfupdate/update/hide_noop.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | 3 | package update 4 | 5 | func hideFile(path string) error { 6 | return nil 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/creativeprojects/go-selfupdate/update/hide_windows.go: -------------------------------------------------------------------------------- 1 | package update 2 | 3 | import ( 4 | "syscall" 5 | "unsafe" 6 | ) 7 | 8 | func hideFile(path string) error { 9 | kernel32 := syscall.NewLazyDLL("kernel32.dll") 10 | setFileAttributes := kernel32.NewProc("SetFileAttributesW") 11 | 12 | utf16Str, err := syscall.UTF16PtrFromString(path) 13 | if err != nil { 14 | return err 15 | } 16 | r1, _, err := setFileAttributes.Call(uintptr(unsafe.Pointer(utf16Str)), 2) 17 | 18 | if r1 == 0 { 19 | return err 20 | } else { 21 | return nil 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/cyphar/filepath-securejoin/VERSION: -------------------------------------------------------------------------------- 1 | 0.4.1 2 | -------------------------------------------------------------------------------- /vendor/github.com/cyphar/filepath-securejoin/gocompat_errors_go120.go: -------------------------------------------------------------------------------- 1 | //go:build linux && go1.20 2 | 3 | // Copyright (C) 2024 SUSE LLC. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package securejoin 8 | 9 | import ( 10 | "fmt" 11 | ) 12 | 13 | // wrapBaseError is a helper that is equivalent to fmt.Errorf("%w: %w"), except 14 | // that on pre-1.20 Go versions only errors.Is() works properly (errors.Unwrap) 15 | // is only guaranteed to give you baseErr. 16 | func wrapBaseError(baseErr, extraErr error) error { 17 | return fmt.Errorf("%w: %w", extraErr, baseErr) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/davidmz/go-pageant/README.md: -------------------------------------------------------------------------------- 1 | [![GoDoc](https://godoc.org/github.com/davidmz/go-pageant?status.svg)](https://godoc.org/github.com/davidmz/go-pageant) 2 | 3 | Package pageant provides an interface to PyTTY pageant.exe utility. 4 | 5 | This package is windows-only. 6 | 7 | See documentation on [GoDoc](http://godoc.org/github.com/davidmz/go-pageant) 8 | 9 | License: MIT -------------------------------------------------------------------------------- /vendor/github.com/dlclark/regexp2/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | *.out 26 | 27 | .DS_Store 28 | -------------------------------------------------------------------------------- /vendor/github.com/dlclark/regexp2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | arch: 3 | - AMD64 4 | - ppc64le 5 | go: 6 | - 1.9 7 | - tip 8 | -------------------------------------------------------------------------------- /vendor/github.com/dlclark/regexp2/syntax/fuzz.go: -------------------------------------------------------------------------------- 1 | // +build gofuzz 2 | 3 | package syntax 4 | 5 | // Fuzz is the input point for go-fuzz 6 | func Fuzz(data []byte) int { 7 | sdata := string(data) 8 | tree, err := Parse(sdata, RegexOptions(0)) 9 | if err != nil { 10 | return 0 11 | } 12 | 13 | // translate it to code 14 | _, err = Write(tree) 15 | if err != nil { 16 | panic(err) 17 | } 18 | 19 | return 1 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/fatih/color/color_windows.go: -------------------------------------------------------------------------------- 1 | package color 2 | 3 | import ( 4 | "os" 5 | 6 | "golang.org/x/sys/windows" 7 | ) 8 | 9 | func init() { 10 | // Opt-in for ansi color support for current process. 11 | // https://learn.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences#output-sequences 12 | var outMode uint32 13 | out := windows.Handle(os.Stdout.Fd()) 14 | if err := windows.GetConsoleMode(out, &outMode); err != nil { 15 | return 16 | } 17 | outMode |= windows.ENABLE_PROCESSED_OUTPUT | windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING 18 | _ = windows.SetConsoleMode(out, outMode) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/gcfg/.gitignore: -------------------------------------------------------------------------------- 1 | coverage.out 2 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/gcfg/Makefile: -------------------------------------------------------------------------------- 1 | # General 2 | WORKDIR = $(PWD) 3 | 4 | # Go parameters 5 | GOCMD = go 6 | GOTEST = $(GOCMD) test 7 | 8 | # Coverage 9 | COVERAGE_REPORT = coverage.out 10 | COVERAGE_MODE = count 11 | 12 | test: 13 | $(GOTEST) ./... 14 | 15 | test-coverage: 16 | echo "" > $(COVERAGE_REPORT); \ 17 | $(GOTEST) -coverprofile=$(COVERAGE_REPORT) -coverpkg=./... -covermode=$(COVERAGE_MODE) ./... 18 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/gcfg/README: -------------------------------------------------------------------------------- 1 | Gcfg reads INI-style configuration files into Go structs; 2 | supports user-defined types and subsections. 3 | 4 | Package docs: https://godoc.org/gopkg.in/gcfg.v1 5 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/gcfg/types/bool.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | // BoolValues defines the name and value mappings for ParseBool. 4 | var BoolValues = map[string]interface{}{ 5 | "true": true, "yes": true, "on": true, "1": true, 6 | "false": false, "no": false, "off": false, "0": false, 7 | } 8 | 9 | var boolParser = func() *EnumParser { 10 | ep := &EnumParser{} 11 | ep.AddVals(BoolValues) 12 | return ep 13 | }() 14 | 15 | // ParseBool parses bool values according to the definitions in BoolValues. 16 | // Parsing is case-insensitive. 17 | func ParseBool(s string) (bool, error) { 18 | v, err := boolParser.Parse(s) 19 | if err != nil { 20 | return false, err 21 | } 22 | return v.(bool), nil 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/gcfg/types/doc.go: -------------------------------------------------------------------------------- 1 | // Package types defines helpers for type conversions. 2 | // 3 | // The API for this package is not finalized yet. 4 | package types 5 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/gcfg/types/scan.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | import ( 4 | "fmt" 5 | "io" 6 | "reflect" 7 | ) 8 | 9 | // ScanFully uses fmt.Sscanf with verb to fully scan val into ptr. 10 | func ScanFully(ptr interface{}, val string, verb byte) error { 11 | t := reflect.ValueOf(ptr).Elem().Type() 12 | // attempt to read extra bytes to make sure the value is consumed 13 | var b []byte 14 | n, err := fmt.Sscanf(val, "%"+string(verb)+"%s", ptr, &b) 15 | switch { 16 | case n < 1 || n == 1 && err != io.EOF: 17 | return fmt.Errorf("failed to parse %q as %v: %v", val, t, err) 18 | case n > 1: 19 | return fmt.Errorf("failed to parse %q as %v: extra characters %q", val, t, string(b)) 20 | } 21 | // n == 1 && err == io.EOF 22 | return nil 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-billy/v5/.gitignore: -------------------------------------------------------------------------------- 1 | /coverage.txt 2 | /vendor 3 | Gopkg.lock 4 | Gopkg.toml 5 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-billy/v5/Makefile: -------------------------------------------------------------------------------- 1 | # Go parameters 2 | GOCMD = go 3 | GOTEST = $(GOCMD) test 4 | WASIRUN_WRAPPER := $(CURDIR)/scripts/wasirun-wrapper 5 | 6 | .PHONY: test 7 | test: 8 | $(GOTEST) -race ./... 9 | 10 | test-coverage: 11 | echo "" > $(COVERAGE_REPORT); \ 12 | $(GOTEST) -coverprofile=$(COVERAGE_REPORT) -coverpkg=./... -covermode=$(COVERAGE_MODE) ./... 13 | 14 | .PHONY: wasitest 15 | wasitest: export GOARCH=wasm 16 | wasitest: export GOOS=wasip1 17 | wasitest: 18 | $(GOTEST) -exec $(WASIRUN_WRAPPER) ./... 19 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-billy/v5/osfs/os_js.go: -------------------------------------------------------------------------------- 1 | //go:build js 2 | // +build js 3 | 4 | package osfs 5 | 6 | import ( 7 | "github.com/go-git/go-billy/v5" 8 | "github.com/go-git/go-billy/v5/helper/chroot" 9 | "github.com/go-git/go-billy/v5/memfs" 10 | ) 11 | 12 | // globalMemFs is the global memory fs 13 | var globalMemFs = memfs.New() 14 | 15 | // Default Filesystem representing the root of in-memory filesystem for a 16 | // js/wasm environment. 17 | var Default = memfs.New() 18 | 19 | // New returns a new OS filesystem. 20 | func New(baseDir string, _ ...Option) billy.Filesystem { 21 | return chroot.New(Default, Default.Join("/", baseDir)) 22 | } 23 | 24 | type options struct { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-billy/v5/osfs/os_options.go: -------------------------------------------------------------------------------- 1 | package osfs 2 | 3 | type Option func(*options) 4 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-billy/v5/osfs/os_wasip1.go: -------------------------------------------------------------------------------- 1 | //go:build wasip1 2 | // +build wasip1 3 | 4 | package osfs 5 | 6 | import ( 7 | "os" 8 | "syscall" 9 | ) 10 | 11 | func (f *file) Lock() error { 12 | f.m.Lock() 13 | defer f.m.Unlock() 14 | return nil 15 | } 16 | 17 | func (f *file) Unlock() error { 18 | f.m.Lock() 19 | defer f.m.Unlock() 20 | return nil 21 | } 22 | 23 | func rename(from, to string) error { 24 | return os.Rename(from, to) 25 | } 26 | 27 | // umask sets umask to a new value, and returns a func which allows the 28 | // caller to reset it back to what it was originally. 29 | func umask(new int) func() { 30 | old := syscall.Umask(new) 31 | return func() { 32 | syscall.Umask(old) 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/.gitignore: -------------------------------------------------------------------------------- 1 | coverage.out 2 | *~ 3 | coverage.txt 4 | profile.out 5 | .tmp/ 6 | .git-dist/ 7 | .vscode 8 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/common.go: -------------------------------------------------------------------------------- 1 | package git 2 | 3 | import "strings" 4 | 5 | // countLines returns the number of lines in a string à la git, this is 6 | // The newline character is assumed to be '\n'. The empty string 7 | // contains 0 lines. If the last line of the string doesn't end with a 8 | // newline, it will still be considered a line. 9 | func countLines(s string) int { 10 | if s == "" { 11 | return 0 12 | } 13 | 14 | nEOL := strings.Count(s, "\n") 15 | if strings.HasSuffix(s, "\n") { 16 | return nEOL 17 | } 18 | 19 | return nEOL + 1 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/doc.go: -------------------------------------------------------------------------------- 1 | // A highly extensible git implementation in pure Go. 2 | // 3 | // go-git aims to reach the completeness of libgit2 or jgit, nowadays covers the 4 | // majority of the plumbing read operations and some of the main write 5 | // operations, but lacks the main porcelain operations such as merges. 6 | // 7 | // It is highly extensible, we have been following the open/close principle in 8 | // its design to facilitate extensions, mainly focusing the efforts on the 9 | // persistence of the objects. 10 | package git 11 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/internal/path_util/path_util.go: -------------------------------------------------------------------------------- 1 | package path_util 2 | 3 | import ( 4 | "os" 5 | "os/user" 6 | "strings" 7 | ) 8 | 9 | func ReplaceTildeWithHome(path string) (string, error) { 10 | if strings.HasPrefix(path, "~") { 11 | firstSlash := strings.Index(path, "/") 12 | if firstSlash == 1 { 13 | home, err := os.UserHomeDir() 14 | if err != nil { 15 | return path, err 16 | } 17 | return strings.Replace(path, "~", home, 1), nil 18 | } else if firstSlash > 1 { 19 | username := path[1:firstSlash] 20 | userAccount, err := user.Lookup(username) 21 | if err != nil { 22 | return path, err 23 | } 24 | return strings.Replace(path, path[:firstSlash], userAccount.HomeDir, 1), nil 25 | } 26 | } 27 | 28 | return path, nil 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/internal/revision/token.go: -------------------------------------------------------------------------------- 1 | package revision 2 | 3 | // token represents a entity extracted from string parsing 4 | type token int 5 | 6 | const ( 7 | eof token = iota 8 | 9 | aslash 10 | asterisk 11 | at 12 | caret 13 | cbrace 14 | colon 15 | control 16 | dot 17 | emark 18 | minus 19 | number 20 | obrace 21 | obracket 22 | qmark 23 | slash 24 | space 25 | tilde 26 | tokenError 27 | word 28 | ) 29 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/plumbing/error.go: -------------------------------------------------------------------------------- 1 | package plumbing 2 | 3 | import "fmt" 4 | 5 | type PermanentError struct { 6 | Err error 7 | } 8 | 9 | func NewPermanentError(err error) *PermanentError { 10 | if err == nil { 11 | return nil 12 | } 13 | 14 | return &PermanentError{Err: err} 15 | } 16 | 17 | func (e *PermanentError) Error() string { 18 | return fmt.Sprintf("permanent client error: %s", e.Err.Error()) 19 | } 20 | 21 | type UnexpectedError struct { 22 | Err error 23 | } 24 | 25 | func NewUnexpectedError(err error) *UnexpectedError { 26 | if err == nil { 27 | return nil 28 | } 29 | 30 | return &UnexpectedError{Err: err} 31 | } 32 | 33 | func (e *UnexpectedError) Error() string { 34 | return fmt.Sprintf("unexpected client error: %s", e.Err.Error()) 35 | } 36 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/plumbing/format/objfile/doc.go: -------------------------------------------------------------------------------- 1 | // Package objfile implements encoding and decoding of object files. 2 | package objfile 3 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/plumbing/hash/hash_sha1.go: -------------------------------------------------------------------------------- 1 | //go:build !sha256 2 | // +build !sha256 3 | 4 | package hash 5 | 6 | import "crypto" 7 | 8 | const ( 9 | // CryptoType defines what hash algorithm is being used. 10 | CryptoType = crypto.SHA1 11 | // Size defines the amount of bytes the hash yields. 12 | Size = 20 13 | // HexSize defines the strings size of the hash when represented in hexadecimal. 14 | HexSize = 40 15 | ) 16 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/plumbing/hash/hash_sha256.go: -------------------------------------------------------------------------------- 1 | //go:build sha256 2 | // +build sha256 3 | 4 | package hash 5 | 6 | import "crypto" 7 | 8 | const ( 9 | // CryptoType defines what hash algorithm is being used. 10 | CryptoType = crypto.SHA256 11 | // Size defines the amount of bytes the hash yields. 12 | Size = 32 13 | // HexSize defines the strings size of the hash when represented in hexadecimal. 14 | HexSize = 64 15 | ) 16 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/plumbing/revision.go: -------------------------------------------------------------------------------- 1 | package plumbing 2 | 3 | // Revision represents a git revision 4 | // to get more details about git revisions 5 | // please check git manual page : 6 | // https://www.kernel.org/pub/software/scm/git/docs/gitrevisions.html 7 | type Revision string 8 | 9 | func (r Revision) String() string { 10 | return string(r) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/plumbing/storer/doc.go: -------------------------------------------------------------------------------- 1 | // Package storer defines the interfaces to store objects, references, etc. 2 | package storer 3 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/plumbing/storer/index.go: -------------------------------------------------------------------------------- 1 | package storer 2 | 3 | import "github.com/go-git/go-git/v5/plumbing/format/index" 4 | 5 | // IndexStorer generic storage of index.Index 6 | type IndexStorer interface { 7 | SetIndex(*index.Index) error 8 | Index() (*index.Index, error) 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/plumbing/storer/shallow.go: -------------------------------------------------------------------------------- 1 | package storer 2 | 3 | import "github.com/go-git/go-git/v5/plumbing" 4 | 5 | // ShallowStorer is a storage of references to shallow commits by hash, 6 | // meaning that these commits have missing parents because of a shallow fetch. 7 | type ShallowStorer interface { 8 | SetShallow([]plumbing.Hash) error 9 | Shallow() ([]plumbing.Hash, error) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/plumbing/storer/storer.go: -------------------------------------------------------------------------------- 1 | package storer 2 | 3 | // Storer is a basic storer for encoded objects and references. 4 | type Storer interface { 5 | EncodedObjectStorer 6 | ReferenceStorer 7 | } 8 | 9 | // Initializer should be implemented by storers that require to perform any 10 | // operation when creating a new repository (i.e. git init). 11 | type Initializer interface { 12 | // Init performs initialization of the storer and returns the error, if 13 | // any. 14 | Init() error 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/storage/filesystem/module.go: -------------------------------------------------------------------------------- 1 | package filesystem 2 | 3 | import ( 4 | "github.com/go-git/go-git/v5/plumbing/cache" 5 | "github.com/go-git/go-git/v5/storage" 6 | "github.com/go-git/go-git/v5/storage/filesystem/dotgit" 7 | ) 8 | 9 | type ModuleStorage struct { 10 | dir *dotgit.DotGit 11 | } 12 | 13 | func (s *ModuleStorage) Module(name string) (storage.Storer, error) { 14 | fs, err := s.dir.Module(name) 15 | if err != nil { 16 | return nil, err 17 | } 18 | 19 | return NewStorage(fs, cache.NewObjectLRUDefault()), nil 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/worktree_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd netbsd 2 | 3 | package git 4 | 5 | import ( 6 | "syscall" 7 | "time" 8 | 9 | "github.com/go-git/go-git/v5/plumbing/format/index" 10 | ) 11 | 12 | func init() { 13 | fillSystemInfo = func(e *index.Entry, sys interface{}) { 14 | if os, ok := sys.(*syscall.Stat_t); ok { 15 | e.CreatedAt = time.Unix(os.Atimespec.Unix()) 16 | e.Dev = uint32(os.Dev) 17 | e.Inode = uint32(os.Ino) 18 | e.GID = os.Gid 19 | e.UID = os.Uid 20 | } 21 | } 22 | } 23 | 24 | func isSymlinkWindowsNonAdmin(err error) bool { 25 | return false 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/worktree_js.go: -------------------------------------------------------------------------------- 1 | // +build js 2 | 3 | package git 4 | 5 | import ( 6 | "syscall" 7 | "time" 8 | 9 | "github.com/go-git/go-git/v5/plumbing/format/index" 10 | ) 11 | 12 | func init() { 13 | fillSystemInfo = func(e *index.Entry, sys interface{}) { 14 | if os, ok := sys.(*syscall.Stat_t); ok { 15 | e.CreatedAt = time.Unix(int64(os.Ctime), int64(os.CtimeNsec)) 16 | e.Dev = uint32(os.Dev) 17 | e.Inode = uint32(os.Ino) 18 | e.GID = os.Gid 19 | e.UID = os.Uid 20 | } 21 | } 22 | } 23 | 24 | func isSymlinkWindowsNonAdmin(err error) bool { 25 | return false 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/worktree_linux.go: -------------------------------------------------------------------------------- 1 | //go:build linux 2 | // +build linux 3 | 4 | package git 5 | 6 | import ( 7 | "syscall" 8 | "time" 9 | 10 | "github.com/go-git/go-git/v5/plumbing/format/index" 11 | ) 12 | 13 | func init() { 14 | fillSystemInfo = func(e *index.Entry, sys interface{}) { 15 | if os, ok := sys.(*syscall.Stat_t); ok { 16 | e.CreatedAt = time.Unix(os.Ctim.Unix()) 17 | e.Dev = uint32(os.Dev) 18 | e.Inode = uint32(os.Ino) 19 | e.GID = os.Gid 20 | e.UID = os.Uid 21 | } 22 | } 23 | } 24 | 25 | func isSymlinkWindowsNonAdmin(_ error) bool { 26 | return false 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/worktree_plan9.go: -------------------------------------------------------------------------------- 1 | package git 2 | 3 | import ( 4 | "syscall" 5 | "time" 6 | 7 | "github.com/go-git/go-git/v5/plumbing/format/index" 8 | ) 9 | 10 | func init() { 11 | fillSystemInfo = func(e *index.Entry, sys interface{}) { 12 | if os, ok := sys.(*syscall.Dir); ok { 13 | // Plan 9 doesn't have a CreatedAt field. 14 | e.CreatedAt = time.Unix(int64(os.Mtime), 0) 15 | 16 | e.Dev = uint32(os.Dev) 17 | 18 | // Plan 9 has no Inode. 19 | // ext2srv(4) appears to store Inode in Qid.Path. 20 | e.Inode = uint32(os.Qid.Path) 21 | 22 | // Plan 9 has string UID/GID 23 | e.GID = 0 24 | e.UID = 0 25 | } 26 | } 27 | } 28 | 29 | func isSymlinkWindowsNonAdmin(err error) bool { 30 | return true 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/worktree_unix_other.go: -------------------------------------------------------------------------------- 1 | // +build openbsd dragonfly solaris 2 | 3 | package git 4 | 5 | import ( 6 | "syscall" 7 | "time" 8 | 9 | "github.com/go-git/go-git/v5/plumbing/format/index" 10 | ) 11 | 12 | func init() { 13 | fillSystemInfo = func(e *index.Entry, sys interface{}) { 14 | if os, ok := sys.(*syscall.Stat_t); ok { 15 | e.CreatedAt = time.Unix(os.Atim.Unix()) 16 | e.Dev = uint32(os.Dev) 17 | e.Inode = uint32(os.Ino) 18 | e.GID = os.Gid 19 | e.UID = os.Uid 20 | } 21 | } 22 | } 23 | 24 | func isSymlinkWindowsNonAdmin(err error) bool { 25 | return false 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/.codecov.yml: -------------------------------------------------------------------------------- 1 | codecov: 2 | require_ci_to_pass: yes 3 | 4 | coverage: 5 | precision: 2 6 | round: down 7 | range: "70...100" 8 | 9 | status: 10 | project: 11 | default: 12 | target: 70% 13 | threshold: 2% 14 | patch: off 15 | changes: no 16 | 17 | parsers: 18 | gcov: 19 | branch_detection: 20 | conditional: yes 21 | loop: yes 22 | method: no 23 | macro: no 24 | 25 | comment: 26 | layout: "header,diff" 27 | behavior: default 28 | require_changes: no 29 | 30 | ignore: 31 | - internal/encoder/vm_color 32 | - internal/encoder/vm_color_indent 33 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/.gitignore: -------------------------------------------------------------------------------- 1 | cover.html 2 | cover.out 3 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '2' 2 | services: 3 | go-json: 4 | image: golang:1.18 5 | volumes: 6 | - '.:/go/src/go-json' 7 | deploy: 8 | resources: 9 | limits: 10 | memory: 620M 11 | working_dir: /go/src/go-json 12 | command: | 13 | sh -c "go test -c . && ls go-json.test" 14 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/decoder/compile_norace.go: -------------------------------------------------------------------------------- 1 | //go:build !race 2 | // +build !race 3 | 4 | package decoder 5 | 6 | import ( 7 | "unsafe" 8 | 9 | "github.com/goccy/go-json/internal/runtime" 10 | ) 11 | 12 | func CompileToGetDecoder(typ *runtime.Type) (Decoder, error) { 13 | initDecoder() 14 | typeptr := uintptr(unsafe.Pointer(typ)) 15 | if typeptr > typeAddr.MaxTypeAddr { 16 | return compileToGetDecoderSlowPath(typeptr, typ) 17 | } 18 | 19 | index := (typeptr - typeAddr.BaseTypeAddr) >> typeAddr.AddrShift 20 | if dec := cachedDecoder[index]; dec != nil { 21 | return dec, nil 22 | } 23 | 24 | dec, err := compileHead(typ, map[uintptr]Decoder{}) 25 | if err != nil { 26 | return nil, err 27 | } 28 | cachedDecoder[index] = dec 29 | return dec, nil 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/decoder/option.go: -------------------------------------------------------------------------------- 1 | package decoder 2 | 3 | import "context" 4 | 5 | type OptionFlags uint8 6 | 7 | const ( 8 | FirstWinOption OptionFlags = 1 << iota 9 | ContextOption 10 | PathOption 11 | ) 12 | 13 | type Option struct { 14 | Flags OptionFlags 15 | Context context.Context 16 | Path *Path 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/encoder/map112.go: -------------------------------------------------------------------------------- 1 | //go:build !go1.13 2 | // +build !go1.13 3 | 4 | package encoder 5 | 6 | import "unsafe" 7 | 8 | //go:linkname MapIterValue reflect.mapitervalue 9 | func MapIterValue(it *mapIter) unsafe.Pointer 10 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/encoder/map113.go: -------------------------------------------------------------------------------- 1 | //go:build go1.13 2 | // +build go1.13 3 | 4 | package encoder 5 | 6 | import "unsafe" 7 | 8 | //go:linkname MapIterValue reflect.mapiterelem 9 | func MapIterValue(it *mapIter) unsafe.Pointer 10 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/encoder/vm/hack.go: -------------------------------------------------------------------------------- 1 | package vm 2 | 3 | import ( 4 | // HACK: compile order 5 | // `vm`, `vm_indent`, `vm_color`, `vm_color_indent` packages uses a lot of memory to compile, 6 | // so forcibly make dependencies and avoid compiling in concurrent. 7 | // dependency order: vm => vm_indent => vm_color => vm_color_indent 8 | _ "github.com/goccy/go-json/internal/encoder/vm_indent" 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/encoder/vm_color/hack.go: -------------------------------------------------------------------------------- 1 | package vm_color 2 | 3 | import ( 4 | // HACK: compile order 5 | // `vm`, `vm_indent`, `vm_color`, `vm_color_indent` packages uses a lot of memory to compile, 6 | // so forcibly make dependencies and avoid compiling in concurrent. 7 | // dependency order: vm => vm_indent => vm_color => vm_color_indent 8 | _ "github.com/goccy/go-json/internal/encoder/vm_color_indent" 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/encoder/vm_indent/hack.go: -------------------------------------------------------------------------------- 1 | package vm_indent 2 | 3 | import ( 4 | // HACK: compile order 5 | // `vm`, `vm_indent`, `vm_color`, `vm_color_indent` packages uses a lot of memory to compile, 6 | // so forcibly make dependencies and avoid compiling in concurrent. 7 | // dependency order: vm => vm_indent => vm_color => vm_color_indent 8 | _ "github.com/goccy/go-json/internal/encoder/vm_color" 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-yaml/.codecov.yml: -------------------------------------------------------------------------------- 1 | codecov: 2 | require_ci_to_pass: yes 3 | 4 | coverage: 5 | precision: 2 6 | round: down 7 | range: "70...100" 8 | 9 | status: 10 | project: 11 | default: 12 | target: 75% 13 | threshold: 2% 14 | patch: off 15 | changes: no 16 | 17 | parsers: 18 | gcov: 19 | branch_detection: 20 | conditional: yes 21 | loop: yes 22 | method: no 23 | macro: no 24 | 25 | comment: 26 | layout: "header,diff" 27 | behavior: default 28 | require_changes: no 29 | 30 | ignore: 31 | - ast 32 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-yaml/.gitignore: -------------------------------------------------------------------------------- 1 | bin/ 2 | .idea/ 3 | cover.out 4 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-yaml/lexer/lexer.go: -------------------------------------------------------------------------------- 1 | package lexer 2 | 3 | import ( 4 | "io" 5 | 6 | "github.com/goccy/go-yaml/scanner" 7 | "github.com/goccy/go-yaml/token" 8 | ) 9 | 10 | // Tokenize split to token instances from string 11 | func Tokenize(src string) token.Tokens { 12 | var s scanner.Scanner 13 | s.Init(src) 14 | var tokens token.Tokens 15 | for { 16 | subTokens, err := s.Scan() 17 | if err == io.EOF { 18 | break 19 | } 20 | tokens.Add(subTokens...) 21 | } 22 | return tokens 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-yaml/parser/color.go: -------------------------------------------------------------------------------- 1 | package parser 2 | 3 | import "fmt" 4 | 5 | const ( 6 | colorFgHiBlack int = iota + 90 7 | colorFgHiRed 8 | colorFgHiGreen 9 | colorFgHiYellow 10 | colorFgHiBlue 11 | colorFgHiMagenta 12 | colorFgHiCyan 13 | ) 14 | 15 | var colorTable = []int{ 16 | colorFgHiRed, 17 | colorFgHiGreen, 18 | colorFgHiYellow, 19 | colorFgHiBlue, 20 | colorFgHiMagenta, 21 | colorFgHiCyan, 22 | } 23 | 24 | func colorize(idx int, content string) string { 25 | colorIdx := idx % len(colorTable) 26 | color := colorTable[colorIdx] 27 | return fmt.Sprintf("\x1b[1;%dm", color) + content + "\x1b[22;0m" 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-yaml/parser/option.go: -------------------------------------------------------------------------------- 1 | package parser 2 | 3 | // Option represents parser's option. 4 | type Option func(p *parser) 5 | 6 | // AllowDuplicateMapKey allow the use of keys with the same name in the same map, 7 | // but by default, this is not permitted. 8 | func AllowDuplicateMapKey() Option { 9 | return func(p *parser) { 10 | p.allowDuplicateMapKey = true 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-yaml/scanner/error.go: -------------------------------------------------------------------------------- 1 | package scanner 2 | 3 | import "github.com/goccy/go-yaml/token" 4 | 5 | type InvalidTokenError struct { 6 | Token *token.Token 7 | } 8 | 9 | func (e *InvalidTokenError) Error() string { 10 | return e.Token.Error 11 | } 12 | 13 | func ErrInvalidToken(tk *token.Token) *InvalidTokenError { 14 | return &InvalidTokenError{ 15 | Token: tk, 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-yaml/validate.go: -------------------------------------------------------------------------------- 1 | package yaml 2 | 3 | // StructValidator need to implement Struct method only 4 | // ( see https://pkg.go.dev/github.com/go-playground/validator/v10#Validate.Struct ) 5 | type StructValidator interface { 6 | Struct(interface{}) error 7 | } 8 | 9 | // FieldError need to implement StructField method only 10 | // ( see https://pkg.go.dev/github.com/go-playground/validator/v10#FieldError ) 11 | type FieldError interface { 12 | StructField() string 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-github/v30/github/actions.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The go-github AUTHORS. All rights reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | package github 7 | 8 | // ActionsService handles communication with the actions related 9 | // methods of the GitHub API. 10 | // 11 | // GitHub API docs: https://developer.github.com/v3/actions/ 12 | type ActionsService service 13 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-github/v30/github/git.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The go-github AUTHORS. All rights reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | package github 7 | 8 | // GitService handles communication with the git data related 9 | // methods of the GitHub API. 10 | // 11 | // GitHub API docs: https://developer.github.com/v3/git/ 12 | type GitService service 13 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-github/v30/github/with_appengine.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The go-github AUTHORS. All rights reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | // +build appengine 7 | 8 | // This file provides glue for making github work on App Engine. 9 | 10 | package github 11 | 12 | import ( 13 | "context" 14 | "net/http" 15 | ) 16 | 17 | func withContext(ctx context.Context, req *http.Request) *http.Request { 18 | // No-op because App Engine adds context to a request differently. 19 | return req 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-github/v30/github/without_appengine.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The go-github AUTHORS. All rights reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | // +build !appengine 7 | 8 | // This file provides glue for making github work without App Engine. 9 | 10 | package github 11 | 12 | import ( 13 | "context" 14 | "net/http" 15 | ) 16 | 17 | func withContext(ctx context.Context, req *http.Request) *http.Request { 18 | return req.WithContext(ctx) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/google/shlex/README: -------------------------------------------------------------------------------- 1 | go-shlex is a simple lexer for go that supports shell-style quoting, 2 | commenting, and escaping. 3 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | *.iml 3 | *.test 4 | .vscode/ -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/.go-version: -------------------------------------------------------------------------------- 1 | 1.22.2 2 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @hashicorp/go-retryablehttp-maintainers 2 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/Makefile: -------------------------------------------------------------------------------- 1 | default: test 2 | 3 | test: 4 | go vet ./... 5 | go test -v -race ./... 6 | 7 | updatedeps: 8 | go get -f -t -u ./... 9 | go get -f -u ./... 10 | 11 | .PHONY: default test updatedeps 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/cert_error_go119.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | //go:build !go1.20 5 | // +build !go1.20 6 | 7 | package retryablehttp 8 | 9 | import "crypto/x509" 10 | 11 | func isCertError(err error) bool { 12 | _, ok := err.(x509.UnknownAuthorityError) 13 | return ok 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/cert_error_go120.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | //go:build go1.20 5 | // +build go1.20 6 | 7 | package retryablehttp 8 | 9 | import "crypto/tls" 10 | 11 | func isCertError(err error) bool { 12 | _, ok := err.(*tls.CertificateVerificationError) 13 | return ok 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-version/version_collection.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package version 5 | 6 | // Collection is a type that implements the sort.Interface interface 7 | // so that versions can be sorted. 8 | type Collection []*Version 9 | 10 | func (v Collection) Len() int { 11 | return len(v) 12 | } 13 | 14 | func (v Collection) Less(i, j int) bool { 15 | return v[i].LessThan(v[j]) 16 | } 17 | 18 | func (v Collection) Swap(i, j int) { 19 | v[i], v[j] = v[j], v[i] 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/henvic/httpretty/.gitignore: -------------------------------------------------------------------------------- 1 | # Docs 2 | doc/*.md 3 | doc/*.1 4 | 5 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 6 | *.o 7 | *.a 8 | *.so 9 | 10 | # Folders 11 | _obj 12 | _test 13 | 14 | # Architecture specific extensions/prefixes 15 | *.[568vq] 16 | [568vq].out 17 | 18 | *.cgo1.go 19 | *.cgo2.c 20 | _cgo_defun.c 21 | _cgo_gotypes.go 22 | _cgo_export.* 23 | 24 | _testmain.go 25 | 26 | *.exe 27 | *.test 28 | *.prof 29 | 30 | .cover 31 | 32 | coverage.html 33 | coverage.out 34 | 35 | *.coverprofile 36 | -------------------------------------------------------------------------------- /vendor/github.com/henvic/httpretty/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to httpretty 2 | ## Bug reports 3 | When reporting bugs, please add information about your operating system and Go version used to compile the code. 4 | 5 | If you can provide a code snippet reproducing the issue, please do so. 6 | 7 | ## Code 8 | Please write code that satisfies [Go Code Review Comments](https://github.com/golang/go/wiki/CodeReviewComments) before submitting a pull-request. 9 | Your code should be properly covered by extensive unit tests. 10 | 11 | ## Commit messages 12 | Please follow the Go [commit messages](https://github.com/golang/go/wiki/CommitMessage) convention when contributing code. 13 | -------------------------------------------------------------------------------- /vendor/github.com/inconshreveable/mousetrap/trap_others.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package mousetrap 5 | 6 | // StartedByExplorer returns true if the program was invoked by the user 7 | // double-clicking on the executable from explorer.exe 8 | // 9 | // It is conservative and returns false if any of the internal calls fail. 10 | // It does not guarantee that the program was run from a terminal. It only can tell you 11 | // whether it was launched from explorer.exe 12 | // 13 | // On non-Windows platforms, it always returns false. 14 | func StartedByExplorer() bool { 15 | return false 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/kballard/go-shellquote/doc.go: -------------------------------------------------------------------------------- 1 | // Shellquote provides utilities for joining/splitting strings using sh's 2 | // word-splitting rules. 3 | package shellquote 4 | -------------------------------------------------------------------------------- /vendor/github.com/kevinburke/ssh_config/.gitattributes: -------------------------------------------------------------------------------- 1 | testdata/dos-lines eol=crlf 2 | -------------------------------------------------------------------------------- /vendor/github.com/kevinburke/ssh_config/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarumaj/gh-gr/f656ac012e595b064cc7f6ab9feabecab2705cec/vendor/github.com/kevinburke/ssh_config/.gitignore -------------------------------------------------------------------------------- /vendor/github.com/kevinburke/ssh_config/.mailmap: -------------------------------------------------------------------------------- 1 | Kevin Burke Kevin Burke 2 | -------------------------------------------------------------------------------- /vendor/github.com/kevinburke/ssh_config/AUTHORS.txt: -------------------------------------------------------------------------------- 1 | Carlos A Becker 2 | Dustin Spicuzza 3 | Eugene Terentev 4 | Kevin Burke 5 | Mark Nevill 6 | Scott Lessans 7 | Sergey Lukjanov 8 | Wayne Ashley Berry 9 | santosh653 <70637961+santosh653@users.noreply.github.com> 10 | -------------------------------------------------------------------------------- /vendor/github.com/kevinburke/ssh_config/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changes 2 | 3 | ## Version 1.2 4 | 5 | Previously, if a Host declaration or a value had trailing whitespace, that 6 | whitespace would have been included as part of the value. This led to unexpected 7 | consequences. For example: 8 | 9 | ``` 10 | Host example # A comment 11 | HostName example.com # Another comment 12 | ``` 13 | 14 | Prior to version 1.2, the value for Host would have been "example " and the 15 | value for HostName would have been "example.com ". Both of these are 16 | unintuitive. 17 | 18 | Instead, we strip the trailing whitespace in the configuration, which leads to 19 | more intuitive behavior. 20 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/go.test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -race -coverprofile=profile.out -covermode=atomic "$d" 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/go.test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -race -coverprofile=profile.out -covermode=atomic "$d" 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_bsd.go: -------------------------------------------------------------------------------- 1 | //go:build (darwin || freebsd || openbsd || netbsd || dragonfly || hurd) && !appengine && !tinygo 2 | // +build darwin freebsd openbsd netbsd dragonfly hurd 3 | // +build !appengine 4 | // +build !tinygo 5 | 6 | package isatty 7 | 8 | import "golang.org/x/sys/unix" 9 | 10 | // IsTerminal return true if the file descriptor is terminal. 11 | func IsTerminal(fd uintptr) bool { 12 | _, err := unix.IoctlGetTermios(int(fd), unix.TIOCGETA) 13 | return err == nil 14 | } 15 | 16 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 17 | // terminal. This is also always false on this environment. 18 | func IsCygwinTerminal(fd uintptr) bool { 19 | return false 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_others.go: -------------------------------------------------------------------------------- 1 | //go:build (appengine || js || nacl || tinygo || wasm) && !windows 2 | // +build appengine js nacl tinygo wasm 3 | // +build !windows 4 | 5 | package isatty 6 | 7 | // IsTerminal returns true if the file descriptor is terminal which 8 | // is always false on js and appengine classic which is a sandboxed PaaS. 9 | func IsTerminal(fd uintptr) bool { 10 | return false 11 | } 12 | 13 | // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 14 | // terminal. This is also always false on this environment. 15 | func IsCygwinTerminal(fd uintptr) bool { 16 | return false 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_plan9.go: -------------------------------------------------------------------------------- 1 | //go:build plan9 2 | // +build plan9 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | func IsTerminal(fd uintptr) bool { 12 | path, err := syscall.Fd2path(int(fd)) 13 | if err != nil { 14 | return false 15 | } 16 | return path == "/dev/cons" || path == "/mnt/term/dev/cons" 17 | } 18 | 19 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 20 | // terminal. This is also always false on this environment. 21 | func IsCygwinTerminal(fd uintptr) bool { 22 | return false 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_solaris.go: -------------------------------------------------------------------------------- 1 | //go:build solaris && !appengine 2 | // +build solaris,!appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | // see: https://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libc/port/gen/isatty.c 12 | func IsTerminal(fd uintptr) bool { 13 | _, err := unix.IoctlGetTermio(int(fd), unix.TCGETA) 14 | return err == nil 15 | } 16 | 17 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 18 | // terminal. This is also always false on this environment. 19 | func IsCygwinTerminal(fd uintptr) bool { 20 | return false 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_tcgets.go: -------------------------------------------------------------------------------- 1 | //go:build (linux || aix || zos) && !appengine && !tinygo 2 | // +build linux aix zos 3 | // +build !appengine 4 | // +build !tinygo 5 | 6 | package isatty 7 | 8 | import "golang.org/x/sys/unix" 9 | 10 | // IsTerminal return true if the file descriptor is terminal. 11 | func IsTerminal(fd uintptr) bool { 12 | _, err := unix.IoctlGetTermios(int(fd), unix.TCGETS) 13 | return err == nil 14 | } 15 | 16 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 17 | // terminal. This is also always false on this environment. 18 | func IsCygwinTerminal(fd uintptr) bool { 19 | return false 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-runewidth/runewidth_appengine.go: -------------------------------------------------------------------------------- 1 | //go:build appengine 2 | // +build appengine 3 | 4 | package runewidth 5 | 6 | // IsEastAsian return true if the current locale is CJK 7 | func IsEastAsian() bool { 8 | return false 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-runewidth/runewidth_js.go: -------------------------------------------------------------------------------- 1 | //go:build js && !appengine 2 | // +build js,!appengine 3 | 4 | package runewidth 5 | 6 | func IsEastAsian() bool { 7 | // TODO: Implement this for the web. Detect east asian in a compatible way, and return true. 8 | return false 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-runewidth/runewidth_windows.go: -------------------------------------------------------------------------------- 1 | //go:build windows && !appengine 2 | // +build windows,!appengine 3 | 4 | package runewidth 5 | 6 | import ( 7 | "syscall" 8 | ) 9 | 10 | var ( 11 | kernel32 = syscall.NewLazyDLL("kernel32") 12 | procGetConsoleOutputCP = kernel32.NewProc("GetConsoleOutputCP") 13 | ) 14 | 15 | // IsEastAsian return true if the current locale is CJK 16 | func IsEastAsian() bool { 17 | r1, _, _ := procGetConsoleOutputCP.Call() 18 | if r1 == 0 { 19 | return false 20 | } 21 | 22 | switch int(r1) { 23 | case 932, 51932, 936, 949, 950: 24 | return true 25 | } 26 | 27 | return false 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/mgutz/ansi/.gitignore: -------------------------------------------------------------------------------- 1 | *.test 2 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/colorstring/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.0 5 | - 1.1 6 | - 1.2 7 | - 1.3 8 | - tip 9 | 10 | script: 11 | - go test 12 | 13 | matrix: 14 | allow_failures: 15 | - go: tip 16 | -------------------------------------------------------------------------------- /vendor/github.com/muesli/reflow/ansi/ansi.go: -------------------------------------------------------------------------------- 1 | package ansi 2 | 3 | const Marker = '\x1B' 4 | 5 | func IsTerminator(c rune) bool { 6 | return (c >= 0x40 && c <= 0x5a) || (c >= 0x61 && c <= 0x7a) 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/muesli/termenv/.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.exe~ 4 | *.dll 5 | *.so 6 | *.dylib 7 | 8 | # Test binary, built with `go test -c` 9 | *.test 10 | 11 | # Output of the go coverage tool, specifically when used with LiteIDE 12 | *.out 13 | 14 | # Dependency directories (remove the comment below to include it) 15 | # vendor/ 16 | -------------------------------------------------------------------------------- /vendor/github.com/muesli/termenv/.golangci.yml: -------------------------------------------------------------------------------- 1 | run: 2 | tests: false 3 | 4 | issues: 5 | include: 6 | - EXC0001 7 | - EXC0005 8 | - EXC0011 9 | - EXC0012 10 | - EXC0013 11 | 12 | max-issues-per-linter: 0 13 | max-same-issues: 0 14 | 15 | linters: 16 | enable: 17 | - bodyclose 18 | - goimports 19 | - gosec 20 | - nilerr 21 | - predeclared 22 | - revive 23 | - rowserrcheck 24 | - sqlclosecheck 25 | - tparallel 26 | - unconvert 27 | - unparam 28 | - whitespace 29 | -------------------------------------------------------------------------------- /vendor/github.com/muesli/termenv/constants_linux.go: -------------------------------------------------------------------------------- 1 | package termenv 2 | 3 | import "golang.org/x/sys/unix" 4 | 5 | const ( 6 | tcgetattr = unix.TCGETS 7 | tcsetattr = unix.TCSETS 8 | ) 9 | -------------------------------------------------------------------------------- /vendor/github.com/muesli/termenv/constants_solaris.go: -------------------------------------------------------------------------------- 1 | package termenv 2 | 3 | import "golang.org/x/sys/unix" 4 | 5 | const ( 6 | tcgetattr = unix.TCGETS 7 | tcsetattr = unix.TCSETS 8 | ) 9 | -------------------------------------------------------------------------------- /vendor/github.com/muesli/termenv/constants_unix.go: -------------------------------------------------------------------------------- 1 | //go:build (darwin || dragonfly || freebsd || netbsd || openbsd) && !solaris && !illumos 2 | // +build darwin dragonfly freebsd netbsd openbsd 3 | // +build !solaris 4 | // +build !illumos 5 | 6 | package termenv 7 | 8 | import "golang.org/x/sys/unix" 9 | 10 | const ( 11 | tcgetattr = unix.TIOCGETA 12 | tcsetattr = unix.TIOCSETA 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/muesli/termenv/constants_zos.go: -------------------------------------------------------------------------------- 1 | package termenv 2 | 3 | import "golang.org/x/sys/unix" 4 | 5 | const ( 6 | tcgetattr = unix.TCGETS 7 | tcsetattr = unix.TCSETS 8 | ) 9 | -------------------------------------------------------------------------------- /vendor/github.com/muesli/termenv/hyperlink.go: -------------------------------------------------------------------------------- 1 | package termenv 2 | 3 | // Hyperlink creates a hyperlink using OSC8. 4 | func Hyperlink(link, name string) string { 5 | return output.Hyperlink(link, name) 6 | } 7 | 8 | // Hyperlink creates a hyperlink using OSC8. 9 | func (o *Output) Hyperlink(link, name string) string { 10 | return OSC + "8;;" + link + ST + name + OSC + "8;;" + ST 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/muesli/termenv/notification.go: -------------------------------------------------------------------------------- 1 | package termenv 2 | 3 | // Notify triggers a notification using OSC777. 4 | func Notify(title, body string) { 5 | output.Notify(title, body) 6 | } 7 | 8 | // Notify triggers a notification using OSC777. 9 | func (o *Output) Notify(title, body string) { 10 | _, _ = o.WriteString(OSC + "777;notify;" + title + ";" + body + ST) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/muesli/termenv/termenv_posix.go: -------------------------------------------------------------------------------- 1 | //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || zos 2 | // +build darwin dragonfly freebsd linux netbsd openbsd zos 3 | 4 | package termenv 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | func isForeground(fd int) bool { 11 | pgrp, err := unix.IoctlGetInt(fd, unix.TIOCGPGRP) 12 | if err != nil { 13 | return false 14 | } 15 | 16 | return pgrp == unix.Getpgrp() 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/muesli/termenv/termenv_solaris.go: -------------------------------------------------------------------------------- 1 | //go:build solaris || illumos 2 | // +build solaris illumos 3 | 4 | package termenv 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | func isForeground(fd int) bool { 11 | pgrp, err := unix.IoctlGetInt(fd, unix.TIOCGPGRP) 12 | if err != nil { 13 | return false 14 | } 15 | 16 | g, err := unix.Getpgrp() 17 | if err != nil { 18 | return false 19 | } 20 | 21 | return pgrp == g 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/neilotoole/jsoncolor/.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.exe~ 4 | *.dll 5 | *.so 6 | *.dylib 7 | 8 | # Test binary, built with `go test -c` 9 | *.test 10 | 11 | # Output of the go coverage tool, specifically when used with LiteIDE 12 | *.out 13 | 14 | # Dependency directories (remove the comment below to include it) 15 | # vendor/ 16 | 17 | *.iml 18 | .idea 19 | TODO.md 20 | **/.DS_Store 21 | /scratch/ 22 | -------------------------------------------------------------------------------- /vendor/github.com/neilotoole/jsoncolor/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | 5 | 6 | | Version | Supported | 7 | | ------- | ------------------ | 8 | | v0.7.0 | :white_check_mark: | 9 | | v0.6.0 | :x: | 10 | 11 | 12 | ## Reporting a Vulnerability 13 | 14 | Open an [issue](https://github.com/neilotoole/jsoncolor/issues/new). 15 | -------------------------------------------------------------------------------- /vendor/github.com/neilotoole/jsoncolor/reflect.go: -------------------------------------------------------------------------------- 1 | //go:build go1.15 2 | // +build go1.15 3 | 4 | package jsoncolor 5 | 6 | import ( 7 | "reflect" 8 | "unsafe" 9 | ) 10 | 11 | func extendSlice(t reflect.Type, s *slice, n int) slice { 12 | arrayType := reflect.ArrayOf(n, t.Elem()) 13 | arrayData := reflect.New(arrayType) 14 | reflect.Copy(arrayData.Elem(), reflect.NewAt(t, unsafe.Pointer(s)).Elem()) 15 | return slice{ 16 | data: unsafe.Pointer(arrayData.Pointer()), 17 | len: s.len, 18 | cap: n, 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/neilotoole/jsoncolor/reflect_optimize.go: -------------------------------------------------------------------------------- 1 | //go:build !go1.15 2 | // +build !go1.15 3 | 4 | package jsoncolor 5 | 6 | import ( 7 | "reflect" 8 | "unsafe" 9 | ) 10 | 11 | //go:linkname unsafe_NewArray reflect.unsafe_NewArray 12 | func unsafe_NewArray(rtype unsafe.Pointer, length int) unsafe.Pointer 13 | 14 | //go:linkname typedslicecopy reflect.typedslicecopy 15 | //go:noescape 16 | func typedslicecopy(elemType unsafe.Pointer, dst, src slice) int 17 | 18 | func extendSlice(t reflect.Type, s *slice, n int) slice { 19 | elemTypeRef := t.Elem() 20 | elemTypePtr := ((*iface)(unsafe.Pointer(&elemTypeRef))).ptr 21 | 22 | d := slice{ 23 | data: unsafe_NewArray(elemTypePtr, n), 24 | len: s.len, 25 | cap: n, 26 | } 27 | 28 | typedslicecopy(elemTypePtr, d, *s) 29 | return d 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/neilotoole/jsoncolor/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarumaj/gh-gr/f656ac012e595b064cc7f6ab9feabecab2705cec/vendor/github.com/neilotoole/jsoncolor/splash.png -------------------------------------------------------------------------------- /vendor/github.com/pjbgf/sha1cd/Dockerfile.arm: -------------------------------------------------------------------------------- 1 | FROM golang:1.23@sha256:51a6466e8dbf3e00e422eb0f7a97ac450b2d57b33617bbe8d2ee0bddcd9d0d37 2 | 3 | ENV GOOS=linux 4 | ENV GOARCH=arm 5 | ENV CGO_ENABLED=1 6 | ENV CC=arm-linux-gnueabihf-gcc 7 | ENV PATH="/go/bin/${GOOS}_${GOARCH}:${PATH}" 8 | ENV PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig 9 | 10 | RUN dpkg --add-architecture armhf \ 11 | && apt update \ 12 | && apt install -y --no-install-recommends \ 13 | gcc-arm-linux-gnueabihf \ 14 | libc6-dev-armhf-cross \ 15 | pkg-config \ 16 | && rm -rf /var/lib/apt/lists/* 17 | 18 | COPY . /src/workdir 19 | 20 | WORKDIR /src/workdir 21 | 22 | RUN go build ./... 23 | -------------------------------------------------------------------------------- /vendor/github.com/pjbgf/sha1cd/Dockerfile.arm64: -------------------------------------------------------------------------------- 1 | FROM golang:1.23@sha256:51a6466e8dbf3e00e422eb0f7a97ac450b2d57b33617bbe8d2ee0bddcd9d0d37 2 | 3 | ENV GOOS=linux 4 | ENV GOARCH=arm64 5 | ENV CGO_ENABLED=1 6 | ENV CC=aarch64-linux-gnu-gcc 7 | ENV PATH="/go/bin/${GOOS}_${GOARCH}:${PATH}" 8 | ENV PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig 9 | 10 | # install build & runtime dependencies 11 | RUN dpkg --add-architecture arm64 \ 12 | && apt update \ 13 | && apt install -y --no-install-recommends \ 14 | gcc-aarch64-linux-gnu \ 15 | libc6-dev-arm64-cross \ 16 | pkg-config \ 17 | && rm -rf /var/lib/apt/lists/* 18 | 19 | COPY . /src/workdir 20 | 21 | WORKDIR /src/workdir 22 | 23 | RUN go build ./... 24 | -------------------------------------------------------------------------------- /vendor/github.com/pjbgf/sha1cd/detection.go: -------------------------------------------------------------------------------- 1 | package sha1cd 2 | 3 | import "hash" 4 | 5 | type CollisionResistantHash interface { 6 | // CollisionResistantSum extends on Sum by returning an additional boolean 7 | // which indicates whether a collision was found during the hashing process. 8 | CollisionResistantSum(b []byte) ([]byte, bool) 9 | 10 | hash.Hash 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/pjbgf/sha1cd/sha1cdblock_noasm.go: -------------------------------------------------------------------------------- 1 | //go:build !amd64 || noasm || !gc 2 | // +build !amd64 noasm !gc 3 | 4 | package sha1cd 5 | 6 | func block(dig *digest, p []byte) { 7 | blockGeneric(dig, p) 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/pjbgf/sha1cd/ubc/ubc.go: -------------------------------------------------------------------------------- 1 | // ubc package provides ways for SHA1 blocks to be checked for 2 | // Unavoidable Bit Conditions that arise from crypto analysis attacks. 3 | package ubc 4 | 5 | //go:generate go run -C asm . -out ../ubc_amd64.s -pkg $GOPACKAGE 6 | -------------------------------------------------------------------------------- /vendor/github.com/pjbgf/sha1cd/ubc/ubc_amd64.go: -------------------------------------------------------------------------------- 1 | //go:build !noasm && gc && amd64 2 | // +build !noasm,gc,amd64 3 | 4 | package ubc 5 | 6 | func CalculateDvMaskAMD64(W [80]uint32) uint32 7 | 8 | // Check takes as input an expanded message block and verifies the unavoidable bitconditions 9 | // for all listed DVs. It returns a dvmask where each bit belonging to a DV is set if all 10 | // unavoidable bitconditions for that DV have been met. 11 | // Thus, one needs to do the recompression check for each DV that has its bit set. 12 | func CalculateDvMask(W [80]uint32) uint32 { 13 | return CalculateDvMaskAMD64(W) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/pjbgf/sha1cd/ubc/ubc_noasm.go: -------------------------------------------------------------------------------- 1 | //go:build !amd64 || noasm || !gc 2 | // +build !amd64 noasm !gc 3 | 4 | package ubc 5 | 6 | // Check takes as input an expanded message block and verifies the unavoidable bitconditions 7 | // for all listed DVs. It returns a dvmask where each bit belonging to a DV is set if all 8 | // unavoidable bitconditions for that DV have been met. 9 | // Thus, one needs to do the recompression check for each DV that has its bit set. 10 | func CalculateDvMask(W [80]uint32) uint32 { 11 | return CalculateDvMaskGeneric(W) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/sarumaj/go-super/errors/wrappers.go: -------------------------------------------------------------------------------- 1 | package errors 2 | 3 | type ( 4 | // Function of type func[T any]() (T, error) 5 | ErrorFn[T any] func() (T, error) 6 | 7 | // Function of type func[T, U any]() (T, U, error) 8 | ErrorFn2[T, U any] func() (T, U, error) 9 | ) 10 | 11 | // Wrapper for function of type func[T any]() (T, error) 12 | func W[T any](t T, err error) ErrorFn[T] { return func() (T, error) { return t, err } } 13 | 14 | // Wrapper for function of type func[T, U any]() (T, U, error) 15 | func W2[T, U any](t T, u U, err error) ErrorFn2[T, U] { 16 | return func() (T, U, error) { return t, u, err } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/schollz/progressbar/v3/.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.exe~ 4 | *.dll 5 | *.so 6 | *.dylib 7 | 8 | # Test binary, built with `go test -c` 9 | *.test 10 | 11 | # Output of the go coverage tool, specifically when used with LiteIDE 12 | *.out 13 | 14 | # Dependency directories (remove the comment below to include it) 15 | # vendor/ 16 | 17 | .idea/ 18 | *.tar.gz 19 | -------------------------------------------------------------------------------- /vendor/github.com/schollz/progressbar/v3/.golangci.yml: -------------------------------------------------------------------------------- 1 | run: 2 | timeout: 5m 3 | exclude-dirs: 4 | - vendor 5 | - examples 6 | 7 | linters: 8 | enable: 9 | - errcheck 10 | - gocyclo 11 | - gofmt 12 | - goimports 13 | - gosimple 14 | - govet 15 | - ineffassign 16 | - staticcheck 17 | - unused 18 | 19 | linters-settings: 20 | gocyclo: 21 | min-complexity: 20 -------------------------------------------------------------------------------- /vendor/github.com/schollz/progressbar/v3/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - tip 5 | 6 | script: go test -v . 7 | -------------------------------------------------------------------------------- /vendor/github.com/sergi/go-diff/diffmatchpatch/mathutil.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2016 The go-diff authors. All rights reserved. 2 | // https://github.com/sergi/go-diff 3 | // See the included LICENSE file for license details. 4 | // 5 | // go-diff is a Go implementation of Google's Diff, Match, and Patch library 6 | // Original library is Copyright (c) 2006 Google Inc. 7 | // http://code.google.com/p/google-diff-match-patch/ 8 | 9 | package diffmatchpatch 10 | 11 | func min(x, y int) int { 12 | if x < y { 13 | return x 14 | } 15 | return y 16 | } 17 | 18 | func max(x, y int) int { 19 | if x > y { 20 | return x 21 | } 22 | return y 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/sergi/go-diff/diffmatchpatch/operation_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=Operation -trimprefix=Diff"; DO NOT EDIT. 2 | 3 | package diffmatchpatch 4 | 5 | import "fmt" 6 | 7 | const _Operation_name = "DeleteEqualInsert" 8 | 9 | var _Operation_index = [...]uint8{0, 6, 11, 17} 10 | 11 | func (i Operation) String() string { 12 | i -= -1 13 | if i < 0 || i >= Operation(len(_Operation_index)-1) { 14 | return fmt.Sprintf("Operation(%d)", i+-1) 15 | } 16 | return _Operation_name[_Operation_index[i]:_Operation_index[i+1]] 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/.gitignore: -------------------------------------------------------------------------------- 1 | logrus 2 | vendor 3 | 4 | .idea/ 5 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/sirupsen/logrus 3 | git: 4 | depth: 1 5 | env: 6 | - GO111MODULE=on 7 | go: 1.15.x 8 | os: linux 9 | install: 10 | - ./travis/install.sh 11 | script: 12 | - cd ci 13 | - go run mage.go -v -w ../ crossBuild 14 | - go run mage.go -v -w ../ lint 15 | - go run mage.go -v -w ../ test 16 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "{build}" 2 | platform: x64 3 | clone_folder: c:\gopath\src\github.com\sirupsen\logrus 4 | environment: 5 | GOPATH: c:\gopath 6 | branches: 7 | only: 8 | - master 9 | install: 10 | - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% 11 | - go version 12 | build_script: 13 | - go get -t 14 | - go test 15 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package logrus is a structured logger for Go, completely API compatible with the standard library logger. 3 | 4 | 5 | The simplest way to use Logrus is simply the package-level exported logger: 6 | 7 | package main 8 | 9 | import ( 10 | log "github.com/sirupsen/logrus" 11 | ) 12 | 13 | func main() { 14 | log.WithFields(log.Fields{ 15 | "animal": "walrus", 16 | "number": 1, 17 | "size": 10, 18 | }).Info("A walrus appears") 19 | } 20 | 21 | Output: 22 | time="2015-09-07T08:48:33Z" level=info msg="A walrus appears" animal=walrus number=1 size=10 23 | 24 | For a full guide visit https://github.com/sirupsen/logrus 25 | */ 26 | package logrus 27 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | ) 8 | 9 | func checkIfTerminal(w io.Writer) bool { 10 | return true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin dragonfly freebsd netbsd openbsd 2 | // +build !js 3 | 4 | package logrus 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const ioctlReadTermios = unix.TIOCGETA 9 | 10 | func isTerminal(fd int) bool { 11 | _, err := unix.IoctlGetTermios(fd, ioctlReadTermios) 12 | return err == nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_js.go: -------------------------------------------------------------------------------- 1 | // +build js 2 | 3 | package logrus 4 | 5 | func isTerminal(fd int) bool { 6 | return false 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_no_terminal.go: -------------------------------------------------------------------------------- 1 | // +build js nacl plan9 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | ) 8 | 9 | func checkIfTerminal(w io.Writer) bool { 10 | return false 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go: -------------------------------------------------------------------------------- 1 | // +build !appengine,!js,!windows,!nacl,!plan9 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | "os" 8 | ) 9 | 10 | func checkIfTerminal(w io.Writer) bool { 11 | switch v := w.(type) { 12 | case *os.File: 13 | return isTerminal(int(v.Fd())) 14 | default: 15 | return false 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_solaris.go: -------------------------------------------------------------------------------- 1 | package logrus 2 | 3 | import ( 4 | "golang.org/x/sys/unix" 5 | ) 6 | 7 | // IsTerminal returns true if the given file descriptor is a terminal. 8 | func isTerminal(fd int) bool { 9 | _, err := unix.IoctlGetTermio(fd, unix.TCGETA) 10 | return err == nil 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_unix.go: -------------------------------------------------------------------------------- 1 | // +build linux aix zos 2 | // +build !js 3 | 4 | package logrus 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const ioctlReadTermios = unix.TCGETS 9 | 10 | func isTerminal(fd int) bool { 11 | _, err := unix.IoctlGetTermios(fd, ioctlReadTermios) 12 | return err == nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_windows.go: -------------------------------------------------------------------------------- 1 | // +build !appengine,!js,windows 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | "os" 8 | 9 | "golang.org/x/sys/windows" 10 | ) 11 | 12 | func checkIfTerminal(w io.Writer) bool { 13 | switch v := w.(type) { 14 | case *os.File: 15 | handle := windows.Handle(v.Fd()) 16 | var mode uint32 17 | if err := windows.GetConsoleMode(handle, &mode); err != nil { 18 | return false 19 | } 20 | mode |= windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING 21 | if err := windows.SetConsoleMode(handle, mode); err != nil { 22 | return false 23 | } 24 | return true 25 | } 26 | return false 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/skeema/knownhosts/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2025 Skeema LLC and the Skeema Knownhosts authors 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | # Vim files https://github.com/github/gitignore/blob/master/Global/Vim.gitignore 23 | # swap 24 | [._]*.s[a-w][a-z] 25 | [._]s[a-w][a-z] 26 | # session 27 | Session.vim 28 | # temporary 29 | .netrwhist 30 | *~ 31 | # auto-generated tag files 32 | tags 33 | 34 | *.exe 35 | cobra.test 36 | bin 37 | 38 | .idea/ 39 | *.iml 40 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/.mailmap: -------------------------------------------------------------------------------- 1 | Steve Francia 2 | Bjørn Erik Pedersen 3 | Fabiano Franz 4 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/MAINTAINERS: -------------------------------------------------------------------------------- 1 | maintainers: 2 | - spf13 3 | - johnSchnake 4 | - jpmcb 5 | - marckhouzam 6 | inactive: 7 | - anthonyfok 8 | - bep 9 | - bogem 10 | - broady 11 | - eparis 12 | - jharshman 13 | - wfernandes 14 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/command_notwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013-2023 The Cobra Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | //go:build !windows 16 | // +build !windows 17 | 18 | package cobra 19 | 20 | var preExecHookFn func(*Command) 21 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | indent_size = 4 7 | indent_style = space 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.go] 12 | indent_style = tab 13 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/* 2 | 3 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/.golangci.yaml: -------------------------------------------------------------------------------- 1 | linters: 2 | disable-all: true 3 | enable: 4 | - nolintlint 5 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: go 4 | 5 | go: 6 | - 1.9.x 7 | - 1.10.x 8 | - 1.11.x 9 | - tip 10 | 11 | matrix: 12 | allow_failures: 13 | - go: tip 14 | 15 | install: 16 | - go get golang.org/x/lint/golint 17 | - export PATH=$GOPATH/bin:$PATH 18 | - go install ./... 19 | 20 | script: 21 | - verify/all.sh -v 22 | - go test ./... 23 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentFormat}} 2 | func {{.DocInfo.Name}}f(t TestingT, {{.ParamsFormat}}) bool { 3 | if h, ok := t.(tHelper); ok { h.Helper() } 4 | return {{.DocInfo.Name}}(t, {{.ForwardedParamsFormat}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool { 3 | if h, ok := a.t.(tHelper); ok { h.Helper() } 4 | return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/errors.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | // AnError is an error instance useful for testing. If the code does not care 8 | // about error specifics, and only needs to return the error for example, this 9 | // error should be used to make the test code more readable. 10 | var AnError = errors.New("assert.AnError general error for testing") 11 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/forward_assertions.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs" 17 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/yaml/yaml_fail.go: -------------------------------------------------------------------------------- 1 | //go:build testify_yaml_fail && !testify_yaml_custom && !testify_yaml_default 2 | // +build testify_yaml_fail,!testify_yaml_custom,!testify_yaml_default 3 | 4 | // Package yaml is an implementation of YAML functions that always fail. 5 | // 6 | // This implementation can be used at build time to replace the default implementation 7 | // to avoid linking with [gopkg.in/yaml.v3]: 8 | // 9 | // go test -tags testify_yaml_fail 10 | package yaml 11 | 12 | import "errors" 13 | 14 | var errNotImplemented = errors.New("YAML functions are not available (see https://pkg.go.dev/github.com/stretchr/testify/assert/yaml)") 15 | 16 | func Unmarshal([]byte, interface{}) error { 17 | return errNotImplemented 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/thlib/go-timezone-local/tzlocal/tz_windows_tzutil.go: -------------------------------------------------------------------------------- 1 | //go:build windows && go1.19 2 | // +build windows,go1.19 3 | 4 | package tzlocal 5 | 6 | import ( 7 | "os/exec" 8 | "strings" 9 | ) 10 | 11 | // localTZfromTzutil executes command `tzutil /g` to get the name of the time zone Windows is configured to use. 12 | func localTZfromTzutil() (string, error) { 13 | cmd := exec.Command("tzutil", "/g") 14 | data, err := cmd.Output() 15 | if err != nil { 16 | return "", err 17 | } 18 | return strings.TrimSpace(string(data)), nil 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/thlib/go-timezone-local/tzlocal/tz_windows_tzutil_go1.18.go: -------------------------------------------------------------------------------- 1 | //go:build windows && !go1.19 2 | // +build windows,!go1.19 3 | 4 | package tzlocal 5 | 6 | import ( 7 | "strings" 8 | 9 | "golang.org/x/sys/execabs" 10 | ) 11 | 12 | // localTZfromTzutil executes command `tzutil /g` to get the name of the time zone Windows is configured to use. 13 | func localTZfromTzutil() (string, error) { 14 | cmd := execabs.Command("tzutil", "/g") 15 | data, err := cmd.Output() 16 | if err != nil { 17 | return "", err 18 | } 19 | return strings.TrimSpace(string(data)), nil 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/.gitignore: -------------------------------------------------------------------------------- 1 | # .gitignore 2 | 3 | TODO.html 4 | README.html 5 | 6 | lzma/writer.txt 7 | lzma/reader.txt 8 | 9 | cmd/gxz/gxz 10 | cmd/xb/xb 11 | 12 | # test executables 13 | *.test 14 | 15 | # profile files 16 | *.out 17 | 18 | # vim swap file 19 | .*.swp 20 | 21 | # executables on windows 22 | *.exe 23 | 24 | # default compression test file 25 | enwik8* 26 | 27 | # file generated by example 28 | example.xz -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/fox-check-none.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarumaj/gh-gr/f656ac012e595b064cc7f6ab9feabecab2705cec/vendor/github.com/ulikunitz/xz/fox-check-none.xz -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/fox.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarumaj/gh-gr/f656ac012e595b064cc7f6ab9feabecab2705cec/vendor/github.com/ulikunitz/xz/fox.xz -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/internal/hash/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014-2022 Ulrich Kunitz. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | /* 6 | Package hash provides rolling hashes. 7 | 8 | Rolling hashes have to be used for maintaining the positions of n-byte 9 | sequences in the dictionary buffer. 10 | 11 | The package provides currently the Rabin-Karp rolling hash and a Cyclic 12 | Polynomial hash. Both support the Hashes method to be used with an interface. 13 | */ 14 | package hash 15 | -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/lzma/fox.lzma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarumaj/gh-gr/f656ac012e595b064cc7f6ab9feabecab2705cec/vendor/github.com/ulikunitz/xz/lzma/fox.lzma -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/make-docs: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -x 4 | pandoc -t html5 -f markdown -s --css=doc/md.css -o README.html README.md 5 | pandoc -t html5 -f markdown -s --css=doc/md.css -o TODO.html TODO.md 6 | -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/none-check.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014-2022 Ulrich Kunitz. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package xz 6 | 7 | import "hash" 8 | 9 | type noneHash struct{} 10 | 11 | func (h noneHash) Write(p []byte) (n int, err error) { return len(p), nil } 12 | 13 | func (h noneHash) Sum(b []byte) []byte { return b } 14 | 15 | func (h noneHash) Reset() {} 16 | 17 | func (h noneHash) Size() int { return 0 } 18 | 19 | func (h noneHash) BlockSize() int { return 0 } 20 | 21 | func newNoneHash() hash.Hash { 22 | return &noneHash{} 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/xanzy/go-gitlab/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | 26 | # IDE specific files and folders 27 | .idea 28 | *.iml 29 | *.swp 30 | *.swo 31 | 32 | # vendor 33 | vendor 34 | -------------------------------------------------------------------------------- /vendor/github.com/xanzy/go-gitlab/Makefile: -------------------------------------------------------------------------------- 1 | ##@ General 2 | 3 | .PHONY: help 4 | help: ## Display this help 5 | @awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST) 6 | 7 | ##@ Development 8 | 9 | fmt: ## Format code 10 | @gofumpt -l -w . 11 | 12 | lint: ## Run linter 13 | @golangci-lint run 14 | 15 | setup: ## Setup your local environment 16 | go mod tidy 17 | @go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest 18 | @go install mvdan.cc/gofumpt@latest 19 | .PHONY: setup 20 | 21 | test: ## Run tests 22 | go test ./... -race 23 | -------------------------------------------------------------------------------- /vendor/github.com/xanzy/ssh-agent/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/github.com/xo/terminfo/.gitignore: -------------------------------------------------------------------------------- 1 | /.cache/ 2 | 3 | /cmd/infocmp/infocmp 4 | /cmd/infocmp/.out/ 5 | 6 | /infocmp 7 | /.out/ 8 | 9 | *.txt 10 | -------------------------------------------------------------------------------- /vendor/github.com/ztrue/tracerr/.gitignore: -------------------------------------------------------------------------------- 1 | /coverage.out 2 | -------------------------------------------------------------------------------- /vendor/github.com/ztrue/tracerr/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | before_install: 4 | - go get github.com/mattn/goveralls 5 | 6 | go: 7 | - "1.11.x" 8 | - "1.10.x" 9 | 10 | script: 11 | - go test -cover -v -covermode=count -coverprofile=coverage.out 12 | - $GOPATH/bin/goveralls -coverprofile=coverage.out -service=travis-ci 13 | -------------------------------------------------------------------------------- /vendor/github.com/ztrue/tracerr/Makefile: -------------------------------------------------------------------------------- 1 | default: test 2 | 3 | .PHONY: lint 4 | lint: 5 | go fmt . && \ 6 | go fmt ./examples && \ 7 | go vet && \ 8 | golint $$(go list ./...) 9 | 10 | .PHONY: doc 11 | doc: 12 | @echo GoDoc link: http://localhost:6060/pkg/github.com/ztrue/tracerr 13 | godoc -http=:6060 14 | 15 | .PHONY: test 16 | test: 17 | go test -cover -v 18 | 19 | .PHONY: coverage 20 | coverage: 21 | go test -coverprofile=coverage.out && \ 22 | go tool cover -func=coverage.out && \ 23 | go tool cover -html=coverage.out 24 | 25 | .PHONY: bench 26 | bench: 27 | GOMAXPROCS=1 go test -bench=. -benchmem 28 | -------------------------------------------------------------------------------- /vendor/github.com/ztrue/tracerr/colors.go: -------------------------------------------------------------------------------- 1 | package tracerr 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | // Colorize outputs using [ANSI Escape Codes](https://en.wikipedia.org/wiki/ANSI_escape_code) 8 | 9 | func color(code int, in string) string { 10 | return fmt.Sprintf("\x1b[%dm%s\x1b[0m", code, in) 11 | } 12 | 13 | func bold(in string) string { 14 | return color(1, in) 15 | } 16 | 17 | func black(in string) string { 18 | return color(30, in) 19 | } 20 | 21 | func red(in string) string { 22 | return color(31, in) 23 | } 24 | 25 | func yellow(in string) string { 26 | return color(33, in) 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/ztrue/tracerr/output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarumaj/gh-gr/f656ac012e595b064cc7f6ab9feabecab2705cec/vendor/github.com/ztrue/tracerr/output.png -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/argon2/blamka_ref.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !amd64 || purego || !gc 6 | 7 | package argon2 8 | 9 | func processBlock(out, in1, in2 *block) { 10 | processBlockGeneric(out, in1, in2, false) 11 | } 12 | 13 | func processBlockXOR(out, in1, in2 *block) { 14 | processBlockGeneric(out, in1, in2, true) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/blake2b/blake2b_ref.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !amd64 || purego || !gc 6 | 7 | package blake2b 8 | 9 | func hashBlocks(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte) { 10 | hashBlocksGeneric(h, c, flag, blocks) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/blake2b/register.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package blake2b 6 | 7 | import ( 8 | "crypto" 9 | "hash" 10 | ) 11 | 12 | func init() { 13 | newHash256 := func() hash.Hash { 14 | h, _ := New256(nil) 15 | return h 16 | } 17 | newHash384 := func() hash.Hash { 18 | h, _ := New384(nil) 19 | return h 20 | } 21 | 22 | newHash512 := func() hash.Hash { 23 | h, _ := New512(nil) 24 | return h 25 | } 26 | 27 | crypto.RegisterHash(crypto.BLAKE2b_256, newHash256) 28 | crypto.RegisterHash(crypto.BLAKE2b_384, newHash384) 29 | crypto.RegisterHash(crypto.BLAKE2b_512, newHash512) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/blake2s/blake2s_ref.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (!amd64 && !386) || !gc || purego 6 | 7 | package blake2s 8 | 9 | var ( 10 | useSSE4 = false 11 | useSSSE3 = false 12 | useSSE2 = false 13 | ) 14 | 15 | func hashBlocks(h *[8]uint32, c *[2]uint32, flag uint32, blocks []byte) { 16 | hashBlocksGeneric(h, c, flag, blocks) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/chacha20/chacha_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc && !purego 6 | 7 | package chacha20 8 | 9 | const bufSize = 256 10 | 11 | //go:noescape 12 | func xorKeyStreamVX(dst, src []byte, key *[8]uint32, nonce *[3]uint32, counter *uint32) 13 | 14 | func (c *Cipher) xorKeyStreamBlocks(dst, src []byte) { 15 | xorKeyStreamVX(dst, src, &c.key, &c.nonce, &c.counter) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/chacha20/chacha_noasm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (!arm64 && !s390x && !ppc64 && !ppc64le) || !gc || purego 6 | 7 | package chacha20 8 | 9 | const bufSize = blockSize 10 | 11 | func (s *Cipher) xorKeyStreamBlocks(dst, src []byte) { 12 | s.xorKeyStreamBlocksGeneric(dst, src) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/chacha20/chacha_ppc64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc && !purego && (ppc64 || ppc64le) 6 | 7 | package chacha20 8 | 9 | const bufSize = 256 10 | 11 | //go:noescape 12 | func chaCha20_ctr32_vsx(out, inp *byte, len int, key *[8]uint32, counter *uint32) 13 | 14 | func (c *Cipher) xorKeyStreamBlocks(dst, src []byte) { 15 | chaCha20_ctr32_vsx(&dst[0], &src[0], len(src), &c.key, &c.counter) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (!amd64 && !loong64 && !ppc64le && !ppc64 && !s390x) || !gc || purego 6 | 7 | package poly1305 8 | 9 | type mac struct{ macGeneric } 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/sha3/hashes_noasm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !gc || purego || !s390x 6 | 7 | package sha3 8 | 9 | func new224() *state { 10 | return new224Generic() 11 | } 12 | 13 | func new256() *state { 14 | return new256Generic() 15 | } 16 | 17 | func new384() *state { 18 | return new384Generic() 19 | } 20 | 21 | func new512() *state { 22 | return new512Generic() 23 | } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/sha3/keccakf_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && !purego && gc 6 | 7 | package sha3 8 | 9 | // This function is implemented in keccakf_amd64.s. 10 | 11 | //go:noescape 12 | 13 | func keccakF1600(a *[25]uint64) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/sha3/shake_noasm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !gc || purego || !s390x 6 | 7 | package sha3 8 | 9 | func newShake128() *state { 10 | return newShake128Generic() 11 | } 12 | 13 | func newShake256() *state { 14 | return newShake256Generic() 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - tip 5 | 6 | install: 7 | - export GOPATH="$HOME/gopath" 8 | - mkdir -p "$GOPATH/src/golang.org/x" 9 | - mv "$TRAVIS_BUILD_DIR" "$GOPATH/src/golang.org/x/oauth2" 10 | - go get -v -t -d golang.org/x/oauth2/... 11 | 12 | script: 13 | - go test -v golang.org/x/oauth2/... 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/internal/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package internal contains support packages for [golang.org/x/oauth2]. 6 | package internal 7 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/asm_darwin_x86_gc.s: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin && amd64 && gc 6 | 7 | #include "textflag.h" 8 | 9 | TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 10 | JMP libc_sysctl(SB) 11 | GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 12 | DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) 13 | 14 | TEXT libc_sysctlbyname_trampoline<>(SB),NOSPLIT,$0-0 15 | JMP libc_sysctlbyname(SB) 16 | GLOBL ·libc_sysctlbyname_trampoline_addr(SB), RODATA, $8 17 | DATA ·libc_sysctlbyname_trampoline_addr(SB)/8, $libc_sysctlbyname_trampoline<>(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_aix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix 6 | 7 | package cpu 8 | 9 | const ( 10 | // getsystemcfg constants 11 | _SC_IMPL = 2 12 | _IMPL_POWER8 = 0x10000 13 | _IMPL_POWER9 = 0x20000 14 | ) 15 | 16 | func archInit() { 17 | impl := getsystemcfg(_SC_IMPL) 18 | if impl&_IMPL_POWER8 != 0 { 19 | PPC64.IsPOWER8 = true 20 | } 21 | if impl&_IMPL_POWER9 != 0 { 22 | PPC64.IsPOWER8 = true 23 | PPC64.IsPOWER9 = true 24 | } 25 | 26 | Initialized = true 27 | } 28 | 29 | func getsystemcfg(label int) (n uint64) { 30 | r0, _ := callgetsystemcfg(label) 31 | n = uint64(r0) 32 | return 33 | } 34 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gc_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | 7 | package cpu 8 | 9 | func getisar0() uint64 10 | func getisar1() uint64 11 | func getpfr0() uint64 12 | func getzfr0() uint64 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gc_s390x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | 7 | package cpu 8 | 9 | // haveAsmFunctions reports whether the other functions in this file can 10 | // be safely called. 11 | func haveAsmFunctions() bool { return true } 12 | 13 | // The following feature detection functions are defined in cpu_s390x.s. 14 | // They are likely to be expensive to call so the results should be cached. 15 | func stfle() facilityList 16 | func kmQuery() queryResult 17 | func kmcQuery() queryResult 18 | func kmctrQuery() queryResult 19 | func kmaQuery() queryResult 20 | func kimdQuery() queryResult 21 | func klmdQuery() queryResult 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gc_x86.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (386 || amd64 || amd64p32) && gc 6 | 7 | package cpu 8 | 9 | // cpuid is implemented in cpu_gc_x86.s for gc compiler 10 | // and in cpu_gccgo.c for gccgo. 11 | func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) 12 | 13 | // xgetbv with ecx = 0 is implemented in cpu_gc_x86.s for gc compiler 14 | // and in cpu_gccgo.c for gccgo. 15 | func xgetbv() (eax, edx uint32) 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gc_x86.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (386 || amd64 || amd64p32) && gc 6 | 7 | #include "textflag.h" 8 | 9 | // func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) 10 | TEXT ·cpuid(SB), NOSPLIT, $0-24 11 | MOVL eaxArg+0(FP), AX 12 | MOVL ecxArg+4(FP), CX 13 | CPUID 14 | MOVL AX, eax+8(FP) 15 | MOVL BX, ebx+12(FP) 16 | MOVL CX, ecx+16(FP) 17 | MOVL DX, edx+20(FP) 18 | RET 19 | 20 | // func xgetbv() (eax, edx uint32) 21 | TEXT ·xgetbv(SB), NOSPLIT, $0-8 22 | MOVL $0, CX 23 | XGETBV 24 | MOVL AX, eax+0(FP) 25 | MOVL DX, edx+4(FP) 26 | RET 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gccgo_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gccgo 6 | 7 | package cpu 8 | 9 | func getisar0() uint64 { return 0 } 10 | func getisar1() uint64 { return 0 } 11 | func getpfr0() uint64 { return 0 } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (386 || amd64 || amd64p32) && gccgo 6 | 7 | package cpu 8 | 9 | //extern gccgoGetCpuidCount 10 | func gccgoGetCpuidCount(eaxArg, ecxArg uint32, eax, ebx, ecx, edx *uint32) 11 | 12 | func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) { 13 | var a, b, c, d uint32 14 | gccgoGetCpuidCount(eaxArg, ecxArg, &a, &b, &c, &d) 15 | return a, b, c, d 16 | } 17 | 18 | //extern gccgoXgetbv 19 | func gccgoXgetbv(eax, edx *uint32) 20 | 21 | func xgetbv() (eax, edx uint32) { 22 | var a, d uint32 23 | gccgoXgetbv(&a, &d) 24 | return a, d 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !386 && !amd64 && !amd64p32 && !arm64 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | if err := readHWCAP(); err != nil { 11 | return 12 | } 13 | doinit() 14 | Initialized = true 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux_loong64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2025 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package cpu 6 | 7 | // HWCAP bits. These are exposed by the Linux kernel. 8 | const ( 9 | hwcap_LOONGARCH_LSX = 1 << 4 10 | hwcap_LOONGARCH_LASX = 1 << 5 11 | ) 12 | 13 | func doinit() { 14 | // TODO: Features that require kernel support like LSX and LASX can 15 | // be detected here once needed in std library or by the compiler. 16 | Loong64.HasLSX = hwcIsSet(hwCap, hwcap_LOONGARCH_LSX) 17 | Loong64.HasLASX = hwcIsSet(hwCap, hwcap_LOONGARCH_LASX) 18 | } 19 | 20 | func hwcIsSet(hwc uint, val uint) bool { 21 | return hwc&val != 0 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && (mips64 || mips64le) 6 | 7 | package cpu 8 | 9 | // HWCAP bits. These are exposed by the Linux kernel 5.4. 10 | const ( 11 | // CPU features 12 | hwcap_MIPS_MSA = 1 << 1 13 | ) 14 | 15 | func doinit() { 16 | // HWCAP feature bits 17 | MIPS64X.HasMSA = isSet(hwCap, hwcap_MIPS_MSA) 18 | } 19 | 20 | func isSet(hwc uint, value uint) bool { 21 | return hwc&value != 0 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux_noinit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && !arm && !arm64 && !loong64 && !mips64 && !mips64le && !ppc64 && !ppc64le && !s390x && !riscv64 6 | 7 | package cpu 8 | 9 | func doinit() {} 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_loong64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2025 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | #include "textflag.h" 6 | 7 | // func get_cpucfg(reg uint32) uint32 8 | TEXT ·get_cpucfg(SB), NOSPLIT|NOFRAME, $0 9 | MOVW reg+0(FP), R5 10 | // CPUCFG R5, R4 = 0x00006ca4 11 | WORD $0x00006ca4 12 | MOVW R4, ret+8(FP) 13 | RET 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_mips64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build mips64 || mips64le 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 32 10 | 11 | func initOptions() { 12 | options = []option{ 13 | {Name: "msa", Feature: &MIPS64X.HasMSA}, 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_mipsx.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build mips || mipsle 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 32 10 | 11 | func initOptions() {} 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | #include "textflag.h" 6 | 7 | TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 8 | JMP libc_sysctl(SB) 9 | 10 | GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 11 | DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux && arm 6 | 7 | package cpu 8 | 9 | func archInit() {} 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux && !netbsd && !openbsd && arm64 6 | 7 | package cpu 8 | 9 | func doinit() {} 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_mips64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux && (mips64 || mips64le) 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | Initialized = true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_ppc64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !aix && !linux && (ppc64 || ppc64le) 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | PPC64.IsPOWER8 = true 11 | Initialized = true 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_riscv64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux && riscv64 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | Initialized = true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_x86.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build 386 || amd64p32 || (amd64 && (!darwin || !gc)) 6 | 7 | package cpu 8 | 9 | func darwinSupportsAVX512() bool { 10 | panic("only implemented for gc && amd64 && darwin") 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_ppc64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build ppc64 || ppc64le 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 128 10 | 11 | func initOptions() { 12 | options = []option{ 13 | {Name: "darn", Feature: &PPC64.HasDARN}, 14 | {Name: "scv", Feature: &PPC64.HasSCV}, 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_wasm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build wasm 6 | 7 | package cpu 8 | 9 | // We're compiling the cpu package for an unknown (software-abstracted) CPU. 10 | // Make CacheLinePad an empty struct and hope that the usual struct alignment 11 | // rules are good enough. 12 | 13 | const cacheLineSize = 0 14 | 15 | func initOptions() {} 16 | 17 | func archInit() {} 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_zos.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package cpu 6 | 7 | func archInit() { 8 | doinit() 9 | Initialized = true 10 | } 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_zos_s390x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package cpu 6 | 7 | func initS390Xbase() { 8 | // get the facilities list 9 | facilities := stfle() 10 | 11 | // mandatory 12 | S390X.HasZARCH = facilities.Has(zarch) 13 | S390X.HasSTFLE = facilities.Has(stflef) 14 | S390X.HasLDISP = facilities.Has(ldisp) 15 | S390X.HasEIMM = facilities.Has(eimm) 16 | 17 | // optional 18 | S390X.HasETF3EH = facilities.Has(etf3eh) 19 | S390X.HasDFP = facilities.Has(dfp) 20 | S390X.HasMSA = facilities.Has(msa) 21 | S390X.HasVX = facilities.Has(vx) 22 | if S390X.HasVX { 23 | S390X.HasVXE = facilities.Has(vxe) 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 6 | 7 | package cpu 8 | 9 | // IsBigEndian records whether the GOARCH's byte order is big endian. 10 | const IsBigEndian = true 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh || wasm 6 | 7 | package cpu 8 | 9 | // IsBigEndian records whether the GOARCH's byte order is big endian. 10 | const IsBigEndian = false 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/runtime_auxv.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package cpu 6 | 7 | // getAuxvFn is non-nil on Go 1.21+ (via runtime_auxv_go121.go init) 8 | // on platforms that use auxv. 9 | var getAuxvFn func() []uintptr 10 | 11 | func getAuxv() []uintptr { 12 | if getAuxvFn == nil { 13 | return nil 14 | } 15 | return getAuxvFn() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/runtime_auxv_go121.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.21 6 | 7 | package cpu 8 | 9 | import ( 10 | _ "unsafe" // for linkname 11 | ) 12 | 13 | //go:linkname runtime_getAuxv runtime.getAuxv 14 | func runtime_getAuxv() []uintptr 15 | 16 | func init() { 17 | getAuxvFn = runtime_getAuxv 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/execabs/execabs_go118.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.19 6 | 7 | package execabs 8 | 9 | import "os/exec" 10 | 11 | func isGo119ErrDot(err error) bool { 12 | return false 13 | } 14 | 15 | func isGo119ErrFieldSet(cmd *exec.Cmd) bool { 16 | return false 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/execabs/execabs_go119.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.19 6 | 7 | package execabs 8 | 9 | import ( 10 | "errors" 11 | "os/exec" 12 | ) 13 | 14 | func isGo119ErrDot(err error) bool { 15 | return errors.Is(err, exec.ErrDot) 16 | } 17 | 18 | func isGo119ErrFieldSet(cmd *exec.Cmd) bool { 19 | return cmd.Err != nil 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/asm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | #include "textflag.h" 6 | 7 | TEXT ·use(SB),NOSPLIT,$0 8 | RET 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/asm_plan9_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | #include "textflag.h" 6 | 7 | // System call support for plan9 on arm 8 | 9 | // Just jump to package syscall's implementation for all these functions. 10 | // The runtime may know about them. 11 | 12 | TEXT ·Syscall(SB),NOSPLIT,$0-32 13 | JMP syscall·Syscall(SB) 14 | 15 | TEXT ·Syscall6(SB),NOSPLIT,$0-44 16 | JMP syscall·Syscall6(SB) 17 | 18 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 19 | JMP syscall·RawSyscall(SB) 20 | 21 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 22 | JMP syscall·RawSyscall6(SB) 23 | 24 | TEXT ·seek(SB),NOSPLIT,$0-36 25 | JMP syscall·exit(SB) 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/env_plan9.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Plan 9 environment variables. 6 | 7 | package plan9 8 | 9 | import ( 10 | "syscall" 11 | ) 12 | 13 | func Getenv(key string) (value string, found bool) { 14 | return syscall.Getenv(key) 15 | } 16 | 17 | func Setenv(key, value string) error { 18 | return syscall.Setenv(key, value) 19 | } 20 | 21 | func Clearenv() { 22 | syscall.Clearenv() 23 | } 24 | 25 | func Environ() []string { 26 | return syscall.Environ() 27 | } 28 | 29 | func Unsetenv(key string) error { 30 | return syscall.Unsetenv(key) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/mksysnum_plan9.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright 2009 The Go Authors. All rights reserved. 3 | # Use of this source code is governed by a BSD-style 4 | # license that can be found in the LICENSE file. 5 | 6 | COMMAND="mksysnum_plan9.sh $@" 7 | 8 | cat <= 10 { 16 | buf[i] = byte(val%10 + '0') 17 | i-- 18 | val /= 10 19 | } 20 | buf[i] = byte(val + '0') 21 | return string(buf[i:]) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | type Signal = syscall.Signal 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 11 | // 12 | 13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 14 | JMP syscall·sysvicall6(SB) 15 | 16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSysvicall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/auxv_unsupported.go: -------------------------------------------------------------------------------- 1 | // Copyright 2025 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.21 && (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Auxv() ([][2]uintptr, error) { 12 | return nil, syscall.ENOTSUP 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 6 | 7 | package unix 8 | 9 | const isBigEndian = true 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh 6 | 7 | package unix 8 | 9 | const isBigEndian = false 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) || (linux && ppc) 6 | 7 | package unix 8 | 9 | func init() { 10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 12 | fcntl64Syscall = SYS_FCNTL64 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gccgo && linux && amd64 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //extern gettimeofday 12 | func realGettimeofday(*Timeval, *byte) int32 13 | 14 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 15 | r := realGettimeofday(tv, nil) 16 | if r < 0 { 17 | return syscall.GetErrno() 18 | } 19 | return 0 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/mmap_nomremap.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | var mapper = &mmapper{ 10 | active: make(map[*byte][]byte), 11 | mmap: mmap, 12 | munmap: munmap, 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | // For Unix, get the pagesize from the runtime. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getpagesize() int { 14 | return syscall.Getpagesize() 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin && !ios 6 | 7 | package unix 8 | 9 | func ptrace(request int, pid int, addr uintptr, data uintptr) error { 10 | return ptrace1(request, pid, addr, data) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_ios.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build ios 6 | 7 | package unix 8 | 9 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { 10 | return ENOTSUP 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin && race) || (linux && race) || (freebsd && race) 6 | 7 | package unix 8 | 9 | import ( 10 | "runtime" 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = true 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | runtime.RaceAcquire(addr) 18 | } 19 | 20 | func raceReleaseMerge(addr unsafe.Pointer) { 21 | runtime.RaceReleaseMerge(addr) 22 | } 23 | 24 | func raceReadRange(addr unsafe.Pointer, len int) { 25 | runtime.RaceReadRange(addr, len) 26 | } 27 | 28 | func raceWriteRange(addr unsafe.Pointer, len int) { 29 | runtime.RaceWriteRange(addr, len) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || (darwin && !race) || (linux && !race) || (freebsd && !race) || netbsd || openbsd || solaris || dragonfly || zos 6 | 7 | package unix 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || dragonfly || freebsd || linux || netbsd || openbsd 6 | 7 | package unix 8 | 9 | // ReadDirent reads directory entries from fd and writes them into buf. 10 | func ReadDirent(fd int, buf []byte) (n int, err error) { 11 | return Getdents(fd, buf) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | // Round the length of a raw sockaddr up to align it properly. 8 | func cmsgAlignOf(salen int) int { 9 | salign := SizeofPtr 10 | if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) { 11 | // 64-bit Dragonfly before the September 2019 ABI changes still requires 12 | // 32-bit aligned access to network subsystem. 13 | salign = 4 14 | } 15 | return (salen + salign - 1) & ^(salign - 1) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_hurd_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build 386 && hurd 6 | 7 | package unix 8 | 9 | const ( 10 | TIOCGETA = 0x62251713 11 | ) 12 | 13 | type Winsize struct { 14 | Row uint16 15 | Col uint16 16 | Xpixel uint16 17 | Ypixel uint16 18 | } 19 | 20 | type Termios struct { 21 | Iflag uint32 22 | Oflag uint32 23 | Cflag uint32 24 | Lflag uint32 25 | Cc [20]uint8 26 | Ispeed int32 27 | Ospeed int32 28 | } 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_alarm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && (386 || amd64 || mips || mipsle || mips64 || mipsle || ppc64 || ppc64le || ppc || s390x || sparc64) 6 | 7 | package unix 8 | 9 | // SYS_ALARM is not defined on arm or riscv, but is available for other GOARCH 10 | // values. 11 | 12 | //sys Alarm(seconds uint) (remaining uint, err error) 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && linux && gc 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //go:noescape 12 | func gettimeofday(tv *Timeval) (err syscall.Errno) 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc 6 | 7 | package unix 8 | 9 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 10 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 11 | 12 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 13 | // fail. 14 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc && 386 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | 15 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 16 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build arm && gc && linux 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gccgo && arm 6 | 7 | package unix 8 | 9 | import ( 10 | "syscall" 11 | "unsafe" 12 | ) 13 | 14 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { 15 | var newoffset int64 16 | offsetLow := uint32(offset & 0xffffffff) 17 | offsetHigh := uint32((offset >> 32) & 0xffffffff) 18 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) 19 | return newoffset, err 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && solaris 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: nsec} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: usec} 15 | } 16 | 17 | func (iov *Iovec) SetLen(length int) { 18 | iov.Len = uint64(length) 19 | } 20 | 21 | func (msghdr *Msghdr) SetIovlen(length int) { 22 | msghdr.Iovlen = int32(length) 23 | } 24 | 25 | func (cmsg *Cmsghdr) SetLen(length int) { 26 | cmsg.Len = uint32(length) 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin || dragonfly || freebsd || (linux && !ppc64 && !ppc64le) || netbsd || openbsd || solaris) && gc 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 12 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 13 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 14 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux 6 | 7 | package unix 8 | 9 | import "runtime" 10 | 11 | // SysvShmCtl performs control operations on the shared memory segment 12 | // specified by id. 13 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 14 | if runtime.GOARCH == "arm" || 15 | runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" { 16 | cmd |= ipc_64 17 | } 18 | 19 | return shmctl(id, cmd, desc) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_unix_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin && !ios) || zos 6 | 7 | package unix 8 | 9 | // SysvShmCtl performs control operations on the shared memory segment 10 | // specified by id. 11 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 12 | return shmctl(id, cmd, desc) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/vgetrandom_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && go1.24 6 | 7 | package unix 8 | 9 | import _ "unsafe" 10 | 11 | //go:linkname vgetrandom runtime.vgetrandom 12 | //go:noescape 13 | func vgetrandom(p []byte, flags uint32) (ret int, supported bool) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/vgetrandom_unsupported.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux || !go1.24 6 | 7 | package unix 8 | 9 | func vgetrandom(p []byte, flags uint32) (ret int, supported bool) { 10 | return -1, false 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows 6 | 7 | package windows 8 | 9 | import "syscall" 10 | 11 | type Errno = syscall.Errno 12 | type SysProcAttr = syscall.SysProcAttr 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build generate 6 | 7 | package windows 8 | 9 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go setupapi_windows.go 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows && race 6 | 7 | package windows 8 | 9 | import ( 10 | "runtime" 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = true 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | runtime.RaceAcquire(addr) 18 | } 19 | 20 | func raceReleaseMerge(addr unsafe.Pointer) { 21 | runtime.RaceReleaseMerge(addr) 22 | } 23 | 24 | func raceReadRange(addr unsafe.Pointer, len int) { 25 | runtime.RaceReadRange(addr, len) 26 | } 27 | 28 | func raceWriteRange(addr unsafe.Pointer, len int) { 29 | runtime.RaceWriteRange(addr, len) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows && !race 6 | 7 | package windows 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/registry/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build generate 6 | 7 | package registry 8 | 9 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go syscall.go 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows 6 | 7 | package windows 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + itoa(-val) 12 | } 13 | var buf [32]byte // big enough for int64 14 | i := len(buf) - 1 15 | for val >= 10 { 16 | buf[i] = byte(val%10 + '0') 17 | i-- 18 | val /= 10 19 | } 20 | buf[i] = byte(val + '0') 21 | return string(buf[i:]) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/README.md: -------------------------------------------------------------------------------- 1 | # Go terminal/console support 2 | 3 | [![Go Reference](https://pkg.go.dev/badge/golang.org/x/term.svg)](https://pkg.go.dev/golang.org/x/term) 4 | 5 | This repository provides Go terminal and console support packages. 6 | 7 | ## Report Issues / Send Patches 8 | 9 | This repository uses Gerrit for code changes. To learn how to submit changes to 10 | this repository, see https://go.dev/doc/contribute. 11 | 12 | The git repository is https://go.googlesource.com/term. 13 | 14 | The main issue tracker for the term repository is located at 15 | https://go.dev/issues. Prefix your issue with "x/term:" in the 16 | subject line, so it is easy to find. 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/term_unix_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin || dragonfly || freebsd || netbsd || openbsd 6 | 7 | package term 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const ioctlReadTermios = unix.TIOCGETA 12 | const ioctlWriteTermios = unix.TIOCSETA 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/term_unix_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || linux || solaris || zos 6 | 7 | package term 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const ioctlReadTermios = unix.TCGETS 12 | const ioctlWriteTermios = unix.TCSETS 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/language/common.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | package language 4 | 5 | // This file contains code common to the maketables.go and the package code. 6 | 7 | // AliasType is the type of an alias in AliasMap. 8 | type AliasType int8 9 | 10 | const ( 11 | Deprecated AliasType = iota 12 | Macro 13 | Legacy 14 | 15 | AliasTypeUnknown AliasType = -1 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/gopkg.in/go-playground/pool.v3/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | pool 26 | old.txt 27 | new.txt -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v3/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | --------------------------------------------------------------------------------