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

Implement rojo open #622

Closed
wants to merge 6 commits into from
Closed

Implement rojo open #622

wants to merge 6 commits into from

Conversation

Yumacide
Copy link

@Yumacide Yumacide commented Aug 12, 2022

Closes #305.

  • Better support for Linux users
  • Connect to the Rojo server from the plugin -- how?
  • Refactor code that's shared with other subcommands

From #305:

Inject a new plugin that puts sync details into _G or into the DataModel

Maybe the plugin could expose a function in _G to connect & the server would inject a new plugin that calls that function with the required address and port?

src/cli/open.rs Outdated Show resolved Hide resolved
src/cli/open.rs Outdated

let server = LiveServer::new(Arc::new(session));

let _ = show_start_message(ip, port, global.color.into());
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
let _ = show_start_message(ip, port, global.color.into());
show_start_message(ip, port, global.color.into());

I think the Result this function returns might need to be handled as well.

Copy link
Contributor

@nezuo nezuo Aug 13, 2022

Choose a reason for hiding this comment

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

I see now that the serve command does this. I guess it was to ignore the result. @LPGhatguy should the result be ignored here?

src/cli/open.rs Outdated Show resolved Hide resolved
src/cli/open.rs Show resolved Hide resolved
src/cli/open.rs Outdated Show resolved Hide resolved
src/cli/open.rs Outdated Show resolved Hide resolved
src/cli/open.rs Outdated Show resolved Hide resolved
src/cli/open.rs Outdated Show resolved Hide resolved
@boatbomber boatbomber added type: enhancement Feature or improvement that should potentially happen scope: cli Relevant to the Rojo CLI size: large status: in-progress Someone is working on this last time we checked. labels Jan 5, 2023
@Yumacide
Copy link
Author

Superseded by #896.

@Yumacide Yumacide closed this Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: cli Relevant to the Rojo CLI size: large status: in-progress Someone is working on this last time we checked. type: enhancement Feature or improvement that should potentially happen
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'rojo open' command
4 participants