Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F10433430
files_win.go
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
531 B
Subscribers
None
files_win.go
View Options
// +build windows
package
config
import
(
"fmt"
"os"
"os/exec"
)
const
(
NoEditorErr
=
"Error getting default editor. You shouldn't see this, so let us know you did: hello@write.as"
)
func
parentDataDir
()
string
{
return
os
.
Getenv
(
"APPDATA"
)
}
func
EditPostCmd
(
fname
string
)
*
exec
.
Cmd
{
// NOTE this won't work if fname contains spaces.
return
exec
.
Command
(
"cmd"
,
"/C copy con "
+
fname
)
}
func
MessageRetryCompose
(
fname
string
)
string
{
return
fmt
.
Sprintf
(
"To retry this post, run:\n type %s | writeas.exe"
,
fname
)
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 20, 3:24 AM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3135637
Attached To
rWCLI writeas-cli
Event Timeline
Log In to Comment