Skip to content

auto symlink ~/.tea/local/bin/foo on installs#601

Merged
mxcl merged 2 commits intomainfrom
auto-symlink
Jun 6, 2023
Merged

auto symlink ~/.tea/local/bin/foo on installs#601
mxcl merged 2 commits intomainfrom
auto-symlink

Conversation

@mxcl
Copy link
Contributor

@mxcl mxcl commented Jun 6, 2023

it’s always symlinked to v* so it can only be the latest version. This suits what most people want this feature for.

Refs #600

@what-the-diff
Copy link

what-the-diff bot commented Jun 6, 2023

PR Summary

  • Moved install function to a new location
    The install function has been relocated to prefab/install.ts for better organization.
  • Added link() helper for symlinking
    A new link() helper has been added to create symlinks for each package installed, ensuring they're accessible in local/bin.
  • Renamed and moved usePackageYAML function
    The usePackageYAML function has been renamed to useYAMLFrontMatter and now resides in the hooks section of the codebase.
  • Modified getVerbosity & getColor for CI compatibility
    Both functions have been updated to be compatible with non-TTY environments, such as when CI=1 or --json is set.
  • Renamed useExec.ts to setup.ts
    The file useExec.ts has been renamed to setup.ts for better naming consistency.
  • Removed unused imports and variables in setup
    Unnecessary imports and variables have been removed from the setup file, streamlining the code.
  • Added a test for tea commands in dev environments
    A new test has been implemented to ensure that tea commands work properly within development environments created by the run() function.

@coveralls
Copy link

coveralls commented Jun 6, 2023

Coverage Status

coverage: 48.386% (-32.0%) from 80.398% when pulling a0e5732 on auto-symlink into 6481085 on main.

mxcl added 2 commits June 6, 2023 09:39
it’s always symlinked to v* so it can only be the latest version. This suits what most people want this feature for.

Refs #600
@mxcl mxcl merged commit a486cfa into main Jun 6, 2023
@mxcl mxcl deleted the auto-symlink branch June 6, 2023 15:08
@coveralls
Copy link

Coverage Status

Changes unknown
when pulling a0e5732 on auto-symlink
into ** on main**.

1 similar comment
@coveralls
Copy link

Coverage Status

Changes unknown
when pulling a0e5732 on auto-symlink
into ** on main**.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants