PKGCTL-VERSION-SETUP(1) PKGCTL-VERSION-SETUP(1) NAME pkgctl-version-setup - Automatically detect and setup a basic nvchecker config SYNOPSIS pkgctl version setup [OPTIONS] [PKGBASE...] DESCRIPTION This subcommand automates the creation of a basic nvchecker(1) configuration file by analyzing the source array specified in the PKGBUILD(1) file of a package. This command intelligently detects various platforms and APIs (e.g., GitHub, GitLab, PyPI) used by the package sources and generates a corresponding .nvchecker.toml configuration based on its best guess. This is particularly useful for initializing nvchecker(1) settings for a package without manually crafting the .nvchecker.toml file. It simplifies the process of setting up version checks, especially when transitioning a package's monitoring from one source platform to another or starting version checks for a new package. If no PKGBASE is specified, the command defaults to using the current working directory. To obtain a list of supported sources and their expected URL formats, please consult the sources section. OPTIONS -f, --force Overwrite existing nvchecker(1) configuration --prefer-platform-api Prefer platform specific GitHub/GitLab API over git for complex cases --url URL Derive check target from the given URL instead of the source array entries --no-check Do not run pkgctl-version-check(1) after setup -h, --help Show a help text SOURCES Here are the currently supported platforms and sources, along with examples of URL formats that enable their automatic detection as specific source types: Git o o o git://git.foobar.org/example o git+https://git.foobar.org/example GitHub o o GitLab o o o Hackage o o o NPM o o PyPI o o o o RubyGems o o CPAN o o crates.io o o o EXAMPLES pkgctl version setup Detects the source from the current directory's PKGBUILD(1) and sets up a basic .nvchecker.toml. pkgctl version setup --url Generates an .nvchecker.toml for the current PKGBUILD(1) but overrides the source URL with the specified GitHub project. SEE ALSO pkgctl-version(1) pkgctl-version-check(1) nvchecker(1) PKGBUILD(5) HOMEPAGE Please report bugs and feature requests in the issue tracker. Please do your best to provide a reproducible test case for bugs. 2024-06-18 PKGCTL-VERSION-SETUP(1)