Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: move link logic to a separate module #49

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

claby2
Copy link
Member

@claby2 claby2 commented Apr 9, 2021

This PR refactors linking functionality by moving it to a separate module, src/linker.rs. It removes some overly verbose flags from ambit sync and also creates another subcommand invoked with ambit move. More tests need to be added to the linker module; however, this PR makes testing easy as AmbitPaths can be passed to Linker. This means that temporary directory paths can be passed to Linker.

@claby2 claby2 marked this pull request as ready for review April 9, 2021 14:23
src/bin/ambit/main.rs Show resolved Hide resolved
src/cmd.rs Outdated Show resolved Hide resolved
src/cmd.rs Outdated Show resolved Hide resolved
src/cmd.rs Outdated Show resolved Hide resolved
src/cmd.rs Outdated Show resolved Hide resolved
src/linker.rs Outdated Show resolved Hide resolved
src/linker.rs Show resolved Hide resolved
src/linker.rs Outdated Show resolved Hide resolved
src/linker.rs Outdated Show resolved Hide resolved
src/linker.rs Outdated Show resolved Hide resolved
@claby2 claby2 requested review from virchau13 and priime0 June 4, 2021 13:50
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