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

feat: Add support for global deployment file #15

Closed
wants to merge 6 commits into from

Conversation

smjonas
Copy link

@smjonas smjonas commented Sep 20, 2024

Still WIP, feedback appreciated.

Closes #14.

-- get the remote path for rsync
-- @param local_path string
-- @return string
---get the remote path for rsync
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason to change comment style?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am using Treesitter parser luap for lua docstrings and they are only highlighted when using ---:
image

I can revert it if you want though

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bug in your highlighting. Treesitter itself and other popular lua plugins use --space in their codebase.

-- convert the given local absolute path to a relative project root path
-- @param absolute_path string
-- @return string
---convert the given local absolute path to a relative project root path
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep the format "-- comment", not "---comment"

@smjonas
Copy link
Author

smjonas commented Sep 21, 2024

Tbh, I didn't think that this would require so many changes to the codebase 😅. Not sure if I can finish this as I am not too knowledgeable with the existing code base regarding the path handling in remote_scp_path..

@smjonas
Copy link
Author

smjonas commented Sep 25, 2024

I will close this PR, if someone else wants to implement this feature, feel free to do so using my code

@smjonas smjonas closed this Sep 25, 2024
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.

[Feature] Global deployment.lua
2 participants