Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lei Li
agent-shell
Commits
7af85b1f
Commit
7af85b1f
authored
Oct 24, 2024
by
Lei Li
Browse files
feat: 获取路径
parent
f16baf1d
Changes
1
Show whitespace changes
Inline
Side-by-side
agent.go
View file @
7af85b1f
...
@@ -16,6 +16,17 @@ import (
...
@@ -16,6 +16,17 @@ import (
//export start
//export start
func
start
()
{
func
start
()
{
dir
,
err
:=
os
.
Getwd
()
if
err
!=
nil
{
LogError
(
"MainActivity"
,
dir
)
}
LogInfo
(
"MainActivity"
,
dir
)
exePath
,
err
:=
os
.
Executable
()
if
err
!=
nil
{
LogError
(
"MainActivity"
,
exePath
)
}
LogInfo
(
"MainActivity"
,
exePath
)
RootDir
=
GetCurrentDirectory
()
RootDir
=
GetCurrentDirectory
()
msg
:=
""
msg
:=
""
for
{
for
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment