Giter VIP home page Giter VIP logo

funky's Introduction

Funky

Do you ever find yourself scrolling back in history to find that command. You know the one. the one you carfeully crafted a week ago that has all the right options and switches to invoke the right incantation. Well, Funky can help you make that bespoke cli invocation into a shell function that is easily (and repeatedly) available.

Basic Usage

funky new my-long-cmd -- long command "with some payload" --and -s -o -m -e --switches "and an $ENV_VAR"

Now you will have a zsh function my-long-cmd that you can call directly in your shell.

my-long-cmd

But, My Command needs to change over time

So, your command needs arguments. You have some component in your command that changes from invocation to invocation, no problem! Funcky provides a few was to handle this. First, you can simply use $ENV_VARs to inject these pieces, but that can be clunky and it can be easy to forget which vars need to be set to what values for your desired behavior. For this, we provide an interactive token selection that allows you to take any token in your command and make it an argument to your function.

How Does It Work?

Funky works by leveraging your existing shell's function mechanisms. Funky can update your shell configuration to automatically pick up new and changed functions at the time of invocation in the shell. This means it is fast, and doesn't require you to re-launch your shell each time you want to create a new function with Funky.

Simply run Funky init to update your preferred shell configuration file.

funky's People

Contributors

renovate[bot] avatar kylechamberlin avatar

Stargazers

Jared Welch avatar John Allspaw avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

funky's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: renovate.json
Error type: Invalid JSON (parsing failed)
Message: Syntax error near }, ],

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

cargo
Cargo.toml
  • clap 4.5.4
  • ctrlc 3.4.4
  • tera 1.19.1
  • lazy_static 1.4.0
  • serde 1.0.200
  • shellexpand 3.1.0
  • color-eyre 0.6.3
  • inquire 0.7.5
github-actions
.github/workflows/audit.yml
  • actions/checkout v4
  • actions-rust-lang/audit v1.1.14
.github/workflows/check.yml
  • actions/checkout v4
  • actions-rust-lang/setup-rust-toolchain v1
  • actions-rust-lang/rustfmt v1
  • github/codeql-action v3
  • actions/checkout v4
  • actions-rust-lang/setup-rust-toolchain v1
.github/workflows/create_release.yml
  • actions/checkout v4
  • actions/checkout v4
  • actions-rust-lang/setup-rust-toolchain v1

  • Check this box to trigger a request for Renovate to run again on this repository

inquire-0.5.3.crate: 1 vulnerabilities (highest severity is: 5.5) - autoclosed

Vulnerable Library - inquire-0.5.3.crate

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (inquire version) Remediation Available
WS-2023-0045 Medium 5.5 remove_dir_all-0.5.3.crate Transitive N/A* โŒ

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the section "Details" below to see if there is a version of transitive dependency where vulnerability is fixed.

Details

WS-2023-0045

Vulnerable Library - remove_dir_all-0.5.3.crate

A safe, reliable implementation of remove_dir_all for Windows

Library home page: https://crates.io/api/v1/crates/remove_dir_all/0.5.3/download

Dependency Hierarchy:

  • inquire-0.5.3.crate (Root Library)
    • tempfile-3.3.0.crate
      • โŒ remove_dir_all-0.5.3.crate (Vulnerable Library)

Found in base branch: main

Vulnerability Details

The remove_dir_all crate is a Rust library that offers additional features over the Rust standard library fs::remove_dir_all function. It suffers the same class of failure as the code it was layering over: TOCTOU race conditions, with the ability to cause arbitrary paths to be deleted by substituting a symlink for a path after the type of the path was checked.

Publish Date: 2023-02-24

URL: WS-2023-0045

CVSS 3 Score Details (5.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Local
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-mc8h-8q98-g5hr

Release Date: 2023-02-24

Fix Resolution: remove_dir_all - 0.8.0

Step up your Open Source Security Game with Mend here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.