mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Create missing CLI tools
Actually create the ifcquery, ifcedit and ifcmcp executables on pip install instead of relying on `python3 -m ifcquery` style usage
This commit is contained in:
@@ -17,6 +17,9 @@ classifiers = [
|
|||||||
]
|
]
|
||||||
dependencies = ["ifcopenshell"]
|
dependencies = ["ifcopenshell"]
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
ifcedit = "ifcedit.__main__:main"
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Homepage = "http://ifcopenshell.org"
|
Homepage = "http://ifcopenshell.org"
|
||||||
Documentation = "https://docs.ifcopenshell.org"
|
Documentation = "https://docs.ifcopenshell.org"
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
# ifc_cli/src/ifcmcp/ifcmcp/__main__.py
|
# ifc_cli/src/ifcmcp/ifcmcp/__main__.py
|
||||||
from ifcmcp.server import build_server
|
from ifcmcp.server import build_server
|
||||||
|
|
||||||
server = build_server()
|
|
||||||
server.run(transport="stdio")
|
def main():
|
||||||
|
server = build_server()
|
||||||
|
server.run(transport="stdio")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
@@ -19,6 +19,9 @@ dependencies = ["ifcopenshell", "ifcquery", "ifcedit"]
|
|||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
mcp = ["mcp"]
|
mcp = ["mcp"]
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
ifcmcp = "ifcmcp.__main__:main"
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Homepage = "http://ifcopenshell.org"
|
Homepage = "http://ifcopenshell.org"
|
||||||
Documentation = "https://docs.ifcopenshell.org"
|
Documentation = "https://docs.ifcopenshell.org"
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ classifiers = [
|
|||||||
]
|
]
|
||||||
dependencies = ["ifcopenshell"]
|
dependencies = ["ifcopenshell"]
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
ifcquery = "ifcquery.__main__:main"
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Homepage = "http://ifcopenshell.org"
|
Homepage = "http://ifcopenshell.org"
|
||||||
Documentation = "https://docs.ifcopenshell.org"
|
Documentation = "https://docs.ifcopenshell.org"
|
||||||
|
|||||||
Reference in New Issue
Block a user