Refactor server and templates package
This commit is contained in:
parent
b6bf0a8900
commit
6ede99d7c6
105 changed files with 341 additions and 339 deletions
|
|
@ -3,7 +3,7 @@ package cmd
|
|||
import (
|
||||
wisski_distillery "github.com/FAU-CDI/wisski-distillery"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/cli"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/control/static"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/server/assets"
|
||||
)
|
||||
|
||||
// License is the 'wdcli license' command.
|
||||
|
|
@ -28,7 +28,7 @@ func (license) AfterParse() error {
|
|||
}
|
||||
|
||||
func (license) Run(context wisski_distillery.Context) error {
|
||||
context.Printf(stringLicenseInfo, wisski_distillery.License, cli.LegalNotices, static.AssetsDisclaimer)
|
||||
context.Printf(stringLicenseInfo, wisski_distillery.License, cli.LegalNotices, assets.Disclaimer)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ func (si systemupdate) Run(context wisski_distillery.Context) error {
|
|||
dis.Instances().Path(),
|
||||
dis.Exporter().StagingPath(),
|
||||
dis.Exporter().ArchivePath(),
|
||||
dis.Custom().CustomAssetsPath(),
|
||||
dis.Templating().CustomAssetsPath(),
|
||||
} {
|
||||
context.Println(d)
|
||||
if err := dis.Still.Environment.MkdirAll(d, environment.DefaultDirPerm); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue