mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +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"]
|
||||
|
||||
[project.scripts]
|
||||
ifcedit = "ifcedit.__main__:main"
|
||||
|
||||
[project.urls]
|
||||
Homepage = "http://ifcopenshell.org"
|
||||
Documentation = "https://docs.ifcopenshell.org"
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# ifc_cli/src/ifcmcp/ifcmcp/__main__.py
|
||||
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]
|
||||
mcp = ["mcp"]
|
||||
|
||||
[project.scripts]
|
||||
ifcmcp = "ifcmcp.__main__:main"
|
||||
|
||||
[project.urls]
|
||||
Homepage = "http://ifcopenshell.org"
|
||||
Documentation = "https://docs.ifcopenshell.org"
|
||||
|
||||
@@ -17,6 +17,9 @@ classifiers = [
|
||||
]
|
||||
dependencies = ["ifcopenshell"]
|
||||
|
||||
[project.scripts]
|
||||
ifcquery = "ifcquery.__main__:main"
|
||||
|
||||
[project.urls]
|
||||
Homepage = "http://ifcopenshell.org"
|
||||
Documentation = "https://docs.ifcopenshell.org"
|
||||
|
||||
Reference in New Issue
Block a user