bump version

This commit is contained in:
figsoda 2023-01-01 20:24:52 -05:00
parent d1ef8bba2d
commit 1a542b2504
4 changed files with 36 additions and 11 deletions

View File

@ -1,6 +1,22 @@
# Changelog
## v0.2.2 - 2023-01-0-1
## v0.3.0 - 2023-01-02
### Changes
- with `--json`, values specified `--arg` are wrapped like this: `{"type": "nix", "value": "<Nix expression>"}` to differentiate from strings
### Fixes
- Correctly handle git:// URLs
### Features
- `--arg-str` to additional arguments to pass to the fetcher as strings
- `--overwrite` to overwrite arguments in the final output
- `--overwrite-str` to overwrite arguments in the final output as strings
## v0.2.2 - 2023-01-01
### Fixes

2
Cargo.lock generated
View File

@ -229,7 +229,7 @@ checksum = "f051f77a7c8e6957c0696eac88f26b0117e54f52d3fc682ab19397a8812846a4"
[[package]]
name = "nurl"
version = "0.2.2"
version = "0.3.0"
dependencies = [
"anyhow",
"clap",

View File

@ -1,6 +1,6 @@
[package]
name = "nurl"
version = "0.2.2"
version = "0.3.0"
authors = ["figsoda <figsoda@pm.me>"]
edition = "2021"
description = "Generate Nix fetcher calls from repository URLs"

View File

@ -40,14 +40,23 @@ Arguments:
[REV] the revision or reference to be fetched
Options:
-f, --fetcher <FETCHER> specify the fetcher function instead of inferring from the URL [possible values: fetchFromBitbucket, fetchFromGitHub, fetchFromGitLab, fetchFromGitea, fetchFromGitiles, fetchFromRepoOrCz, fetchFromSourcehut, fetchgit, fetchhg]
-i, --indent <INDENT> extra indentation (in number of spaces) [default: 0]
-j, --json output in json format
-a, --arg <KEY> <VALUE> additional arguments to pass to the fetcher
-l, --list-fetchers List all available fetchers
-L, --list-possible-fetchers List all fetchers that can be generated without --fetcher
-h, --help Print help information
-V, --version Print version information
-f, --fetcher <FETCHER> specify the fetcher function instead of inferring from the
URL [possible values: fetchFromBitbucket, fetchFromGitHub,
fetchFromGitLab, fetchFromGitea, fetchFromGitiles,
fetchFromRepoOrCz, fetchFromSourcehut, fetchgit, fetchhg]
-i, --indent <INDENT> extra indentation (in number of spaces) [default: 0]
-j, --json output in json format
-a, --arg <NAME> <EXPR> additional arguments to pass to the fetcher
-A, --arg-str <NAME> <STRING> same as --overwrite, but accepts strings instead Nix
expressions
-o, --overwrite <NAME> <EXPR> overwrite arguments in the final output, not taken into
consideration when fetching the hash
-O, --overwrite-str <NAME> <STRING> same as --overwrite, but accepts strings instead Nix
expressions
-l, --list-fetchers List all available fetchers
-L, --list-possible-fetchers List all fetchers that can be generated without --fetcher
-h, --help Print help information
-V, --version Print version information
```
## Comparison to [nix-prefetch](https://github.com/msteen/nix-prefetch)