Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F12339148
keys.go
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
851 B
Subscribers
None
keys.go
View Options
/*
* Copyright © 2020-2021 Musing Studio LLC.
*
* This file is part of WriteFreely.
*
* WriteFreely is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, included
* in the LICENSE file in this source code package.
*/
package
main
import
(
"github.com/urfave/cli/v2"
"github.com/writefreely/writefreely"
)
var
(
cmdKeys
cli
.
Command
=
cli
.
Command
{
Name
:
"keys"
,
Usage
:
"key management tools"
,
Subcommands
:
[]
*
cli
.
Command
{
&
cmdGenerateKeys
,
},
}
cmdGenerateKeys
cli
.
Command
=
cli
.
Command
{
Name
:
"generate"
,
Aliases
:
[]
string
{
"gen"
},
Usage
:
"Generate encryption and authentication keys"
,
Action
:
genKeysAction
,
}
)
func
genKeysAction
(
c
*
cli
.
Context
)
error
{
app
:=
writefreely
.
NewApp
(
c
.
String
(
"c"
))
return
writefreely
.
GenerateKeyFiles
(
app
)
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 15, 9:28 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3489186
Attached To
rWF WriteFreely
Event Timeline
Log In to Comment