Skip to content

Miezhiko/crab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

crab

When you tend to forget what should you run cabal or cargo

#!/usr/bin/env sh

for f in *; do
  if [[ -f "${f}" ]]; then
    if [[ "${f}" == "Cargo.toml" ]]; then
      cargo "$@"
    fi
    if [[ "${f}" == *.cabal ]]; then
      cabal "$@"
    fi
  fi
done

About

When you tend to forget what should you run cabal or cargo run crab

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published