waveterm/pkg/service/fileservice/fileservice.go

18 lines
323 B
Go
Raw Normal View History

2024-05-14 18:37:41 +02:00
// 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)
}