markdown preview

This commit is contained in:
sawka
2024-05-14 09:37:41 -07:00
parent 540f2fe0c0
commit 1db615bb3a
13 changed files with 1040 additions and 9 deletions
+17
View File
@@ -0,0 +1,17 @@
// Copyright 2024, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0
package fileservice
import (
"os"
"github.com/wavetermdev/thenextwave/pkg/wavebase"
)
type FileService struct{}
func (fs *FileService) ReadFile(path string) ([]byte, error) {
path = wavebase.ExpandHomeDir(path)
return os.ReadFile(path)
}