+
Skip to content

Feature: Make balc take in a custom input for updating a single input #43

@NovaViper

Description

@NovaViper

Hey, I want to use balc in a custom updater justfile recipe that I tell it to update a specific flake input, and it goes and checks if there are any new updates available for said specific flake input. It currently tries to update every single input

nix flake update || exit
but I want it to only update the specified input I give it

My justfile script is this

[doc('Update a given flake input, {{INPUT}}')]
@update-input INPUT:
    balc {{ INPUT }} || exit
    git commit --quiet --message "chore: update {{ INPUT }}" flake.lock
    if [ ! $(git ls-remote origin --quiet) ]; then \ echo "Can't reach the remote repo to push. Try pushing again later."; \ git restore flake.lock; \ exit 1; \ fi
    git push origin master

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载