Skip to content

Commit 8cb49d1

Browse files
committed
refactor: don't expose private methods
1 parent 0a00b0f commit 8cb49d1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/kotlin/com/coder/toolbox/cli/CoderCLIManager.kt

+5-5
Original file line numberDiff line numberDiff line change
@@ -514,9 +514,9 @@ class CoderCLIManager(
514514
companion object {
515515
private val tokenRegex = "--token [^ ]+".toRegex()
516516

517-
fun getHostnamePrefix(url: URL): String = "coder-jetbrains-toolbox-${url.safeHost()}"
517+
private fun getHostnamePrefix(url: URL): String = "coder-jetbrains-toolbox-${url.safeHost()}"
518518

519-
fun getBackgroundHostnamePrefix(url: URL): String = "coder-jetbrains-toolbox-${url.safeHost()}-bg"
519+
private fun getBackgroundHostnamePrefix(url: URL): String = "coder-jetbrains-toolbox-${url.safeHost()}-bg"
520520

521521
fun getWildcardHostname(url: URL, ws: Workspace, agent: WorkspaceAgent): String =
522522
"${getHostnamePrefix(url)}--${ws.ownerName}--${ws.name}.${agent.name}"
@@ -529,10 +529,10 @@ class CoderCLIManager(
529529
return "${getHostname(url, ws, agent)}--bg"
530530
}
531531

532-
fun getWsByOwner(ws: Workspace, agent: WorkspaceAgent): String = "${ws.ownerName}/${ws.name}.${agent.name}"
532+
private fun getWsByOwner(ws: Workspace, agent: WorkspaceAgent): String = "${ws.ownerName}/${ws.name}.${agent.name}"
533533

534-
fun Pair<Workspace, WorkspaceAgent>.workspace() = this.first
534+
private fun Pair<Workspace, WorkspaceAgent>.workspace() = this.first
535535

536-
fun Pair<Workspace, WorkspaceAgent>.agent() = this.second
536+
private fun Pair<Workspace, WorkspaceAgent>.agent() = this.second
537537
}
538538
}

0 commit comments

Comments
 (0)