MCPcopy Index your code

hub / github.com/andir/npins / functions

Functions127 in github.com/andir/npins

↓ 13 callersMethodremove
(&self, r: &RemoveOpts)
src/main.rs:704
↓ 10 callersMethodadd
(&self)
src/main.rs:50
↓ 10 callersMethodread_pins
(&self)
src/main.rs:286
↓ 10 callersMethodupdate
(&self, _old: Option<&GitRevision>)
libnpins/src/pins/git.rs:464
↓ 9 callersFunctionstart_runtime
(future: impl Future<Output = Result<()>>)
src/main.rs:1072
↓ 9 callersMethodwrite_pins
(&self, pins: &NixPins)
src/main.rs:302
↓ 6 callersMethodgit_url
Get the URL to the represented Git repository
libnpins/src/pins/git.rs:292
↓ 4 callersFunctionbuild_client
Helper method to build you a client. TODO make injectable via a configuration mechanism
libnpins/src/lib.rs:27
↓ 4 callersFunctionnix_prefetch_git
( url: impl AsRef<str>, git_ref: impl AsRef<str>, submodules: bool, )
libnpins/src/nix.rs:61
↓ 4 callersMethodupdate
(&self, opts: &UpdateOpts)
src/main.rs:477
↓ 3 callersMethodfetch
(&self, version: &GitRevision)
libnpins/src/pins/git.rs:474
↓ 3 callersFunctionfetch_remote
Convenience wrapper around calling `git ls-remote`
libnpins/src/pins/git.rs:686
↓ 3 callersFunctionget_and_deserialize
Helper method for doing various API calls
libnpins/src/lib.rs:38
↓ 3 callersMethodis_frozen
(&self)
libnpins/src/lib.rs:215
↓ 3 callersFunctionnix_prefetch_tarball
(url: impl AsRef<str>)
libnpins/src/nix.rs:13
↓ 3 callersFunctionnix_prefetch_url
(url: impl AsRef<str>, unpack: bool)
libnpins/src/nix.rs:17
↓ 3 callersMethodproperties
(&self)
libnpins/src/diff.rs:72
↓ 3 callersFunctionupgrade
Patch the sources.json file to the latest version This operates on a JSON value level
libnpins/src/versions.rs:51
↓ 3 callersMethodurl
Get the url to a tarball of the requested revision
libnpins/src/pins/git.rs:326
↓ 2 callersFunctioncheck_git_url
The git url to a repo has no defined endpoint in the protocol, and thus may not be routed by all web servers. However, $GIT_REMOTE/info/refs is a vali
libnpins/src/lib.rs:88
↓ 2 callersFunctioncheck_url
Issue a http GET request to an URL without actually fetching its output, as a quick sanity check for its validity. This is meant as a check on the unh
libnpins/src/lib.rs:61
↓ 2 callersFunctionelide_to_first_line
(input_string: &str)
libnpins/src/lib.rs:246
↓ 2 callersFunctionfetch_branch_head
Get the revision for a branch
libnpins/src/pins/git.rs:762
↓ 2 callersMethodfetch_default_branch
(self: &FlakePin, prefix: &str)
libnpins/src/flake.rs:140
↓ 2 callersFunctionfetch_ref
Get the commit for a ref
libnpins/src/pins/git.rs:741
↓ 2 callersFunctionfetch_tags
List all tags of a repo
libnpins/src/pins/git.rs:767
↓ 2 callersMethodfreeze
(&self, o: &FreezeOpts)
src/main.rs:726
↓ 2 callersFunctiongeneric_upgrader
A generic wrapper that updates all pins individually with a provided upgrade function. * This can be used in all cases where only the pin structu
libnpins/src/versions.rs:66
↓ 2 callersMethodinit
(&self, o: &InitOpts)
src/main.rs:318
↓ 2 callersFunctioninit_logger
()
libnpins/src/versions.rs:361
↓ 2 callersFunctionnix_prefetch_docker
( image_name: impl AsRef<str>, image_tag: impl AsRef<str>, arch: &Option<String>, image_digest
libnpins/src/nix.rs:142
↓ 2 callersMethodon_pin_finish
Removes the pin from being progressed and provide writer to print result
src/main.rs:1028
↓ 2 callersMethodon_pin_start
To be called every time a pin starts processing
src/main.rs:1005
↓ 2 callersMethodrun
(&self)
src/main.rs:244
↓ 2 callersFunctionstrip_url
Extract the scheme and host of a domain, stripping the rest
libnpins/src/pins/git.rs:31
↓ 2 callersMethodupdate
(&self, old: Option<&GenericVersion>)
libnpins/src/pins/pypi.rs:50
↓ 2 callersMethodupdate_in_progress
Update the set of in_progress pins, redrawing it in the process. The closure passed may also print information, which will then be displayed above the
src/main.rs:988
↓ 2 callersFunctionwrite_diff
(writer: &mut impl Write, name: &str, diff: &[diff::DiffEntry])
src/main.rs:274
↓ 1 callersFunctiondiff
Diff two sets of properties The code works best when both sides have the same keys.
libnpins/src/diff.rs:35
↓ 1 callersFunctionfetch_default_branch
(repo: &Url)
libnpins/src/pins/git.rs:775
↓ 1 callersFunctionfrom_value_versioned
Custom manual deserialize wrapper that checks the version
libnpins/src/versions.rs:15
↓ 1 callersMethodget_path
(&self, o: &GetPathOpts)
src/main.rs:925
↓ 1 callersMethodimport_flake
(&self, o: &ImportFlakeOpts)
src/main.rs:823
↓ 1 callersMethodimport_niv
(&self, o: &ImportOpts)
src/main.rs:763
↓ 1 callersMethodis_indirect
(&self)
libnpins/src/flake.rs:62
↓ 1 callersFunctionlatest_release
Take an iterator of tags and spit out the latest release
libnpins/src/pins/git.rs:812
↓ 1 callersMethodmust_fetch
Whether we want to force-update the hashes
src/main.rs:40
↓ 1 callersFunctionnix_eval_pin
(lockfile_path: &Path, pin: &str)
libnpins/src/nix.rs:191
↓ 1 callersMethodrelease_url
Get the url to a tarball of the requested release
libnpins/src/pins/git.rs:377
↓ 1 callersMethodshould_update
Whether the latest version should be fetched
src/main.rs:31
↓ 1 callersMethodshow
(&self, opts: &ShowOpts)
src/main.rs:373
↓ 1 callersFunctionto_value_versioned
Custom manual serialize wrapper that adds a version field
libnpins/src/versions.rs:38
↓ 1 callersMethodto_value_versioned
Custom manual serialize wrapper that adds a version field
libnpins/src/lib.rs:172
↓ 1 callersMethodtry_to_pin
(self: FlakePin)
libnpins/src/flake.rs:68
↓ 1 callersMethodunfreeze
(&self, o: &FreezeOpts)
src/main.rs:744
↓ 1 callersMethodupdate
(&self, _old: Option<&ContainerVersion>)
libnpins/src/pins/container.rs:57
↓ 1 callersMethodupgrade
(&self)
src/main.rs:662
↓ 1 callersFunctionupgrade_v7_pin
v7→v8. This upgrade splits Tarball pins into two types of generic url pins: * - `Tarball { url }` → `UrlPin { url, unpack: true }` * - `Tarball { ur
libnpins/src/versions.rs:302
↓ 1 callersMethodverify
(&self, opts: &VerifyOpts)
src/main.rs:569
Functiondefault_artifact_path
()
libnpins/src/pins/channel.rs:13
Methodfetch
(&self, version: &GenericVersion)
libnpins/src/pins/pypi.rs:109
Methodfetch
(&self, version: &ChannelVersion)
libnpins/src/pins/channel.rs:86
Methodfetch
(&self, version: &ContainerVersion)
libnpins/src/pins/container.rs:65
Methodfetch
(&self, _version: &())
libnpins/src/pins/urlpin.rs:45
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
libnpins/src/diff.rs:14
Methodforgejo
(server: Url, owner: impl Into<String>, repo: impl Into<String>)
libnpins/src/pins/git.rs:237
Methodforgejo_from_url
(url: Url)
libnpins/src/pins/git.rs:245
Functionformat_command
Formats a command in a shell-safe manner. NOTE: Multi-line components will be elided to their first line!
libnpins/src/lib.rs:264
Methodfreeze
(&mut self)
libnpins/src/lib.rs:207
Methodfrom_json_versioned
Custom manual deserialize wrapper that checks the version
libnpins/src/lib.rs:167
Functionget_github_api_url
()
libnpins/src/pins/git.rs:25
Functionget_github_url
()
libnpins/src/pins/git.rs:21
Methodgit
(url: Url)
libnpins/src/pins/git.rs:206
Methodgit_auto
Takes in only an URL and tries to find the most specific repository type that matches. Falls back to `Self::Git` For forges that can also be self-hos
libnpins/src/pins/git.rs:139
Methodgithub
(owner: impl Into<String>, repo: impl Into<String>)
libnpins/src/pins/git.rs:210
Methodgithub_from_url
Try to create a `GitHub` type repository from a GitHub repository URL. Returns `None` if the URL is in any way.
libnpins/src/pins/git.rs:219
Methodgitlab
(repo_path: String, server: Option<Url>, private_token: Option<String>)
libnpins/src/pins/git.rs:264
Methodgitlab_from_url
Try to create a `GitLab` type repository from a GitLab repository URL (any instance). Returns `None` if the URL is in any way.
libnpins/src/pins/git.rs:275
Methodimport
( name: &str, pin: Option<&serde_json::Value>, npins: &mut NixPins,
src/main.rs:776
Methodinsert_diffed
(&mut self, value: T)
libnpins/src/diff.rs:94
Methodis_default
(&self)
libnpins/src/lib.rs:219
Functionmain
()
src/main.rs:1056
Functionmain
()
completions/src/main.rs:6
Methodnew
(name: impl Into<String>, artifact: impl Into<String>)
libnpins/src/pins/channel.rs:34
Methodnew
(revision: String)
libnpins/src/pins/git.rs:45
Methodnew
(write_bottom_line: F)
src/main.rs:977
Methodnew_with_nixpkgs
Create a new `NixPins` with a pin `nixpkgs` pointing to the `nixpkgs-unstable` channel
libnpins/src/lib.rs:157
Methodprobe_forge
Takes in a URL of unknown forge and tries to determine which forge the hoster is And then parse the url into the according Repository Variant
libnpins/src/pins/git.rs:169
Methodproperties
(&self)
libnpins/src/lib.rs:186
Methodproperties
(&self)
libnpins/src/pins/pypi.rs:30
Methodproperties
(&self)
libnpins/src/pins/channel.rs:25
Methodproperties
(&self)
libnpins/src/pins/container.rs:16
Methodproperties
(&self)
libnpins/src/pins/git.rs:54
Methodproperties
(&self)
libnpins/src/pins/urlpin.rs:27
Methodtag
(tag: impl Into<String>)
libnpins/src/pins/git.rs:802
Functiontest_diff
()
libnpins/src/diff.rs:133
Functiontest_fetch_branch
()
libnpins/src/pins/git.rs:918
Functiontest_fetch_ref
()
libnpins/src/pins/git.rs:985
Functiontest_fetch_tags
()
libnpins/src/pins/git.rs:931
Functiontest_forgejo_release_update
()
libnpins/src/pins/git.rs:1185
next →1–100 of 127, ranked by callers