rsm-hcd / AndcultureCode.Cli

and-cli command-line tool to manage the development of software applications
https://andculture.com
Apache License 2.0
14 stars 15 forks source link

Skip dev alias if exists #203

Closed brandongregoryscott closed 3 years ago

brandongregoryscott commented 3 years ago

Resolves #136 Install command: Skip dev alias if already exists

Adds a safeguard to short-circuit the dev alias installation if and-cli-dev appears in the file (previously it was matching on the entire alias/path, which may be different depending on where the command is run from). It outputs the different path for reference.

Additionally, added a --clear flag which will remove any lines in the bash file that contain and-cli. Wanted an easy way to reset aliases in the bash file in the event the consumer has some really jacked up aliases that they want to reset.

codecov[bot] commented 3 years ago

Codecov Report

Merging #203 (d2aeb3f) into main (cb9df37) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #203   +/-   ##
=======================================
  Coverage   74.46%   74.46%           
=======================================
  Files          45       45           
  Lines        1692     1692           
  Branches      289      289           
=======================================
  Hits         1260     1260           
  Misses        424      424           
  Partials        8        8           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update cb9df37...d2aeb3f. Read the comment docs.

brandongregoryscott commented 3 years ago

@all-contributors add @myty for review

allcontributors[bot] commented 3 years ago

@brandongregoryscott

I've put up a pull request to add @myty! :tada:

brandongregoryscott commented 3 years ago

@all-contributors add @jhugs for review

allcontributors[bot] commented 3 years ago

@brandongregoryscott

I've put up a pull request to add @jhugs! :tada: