diff options
Diffstat (limited to 'internal/wfs')
| -rw-r--r-- | internal/wfs/osfs/osfs.go | 17 | ||||
| -rw-r--r-- | internal/wfs/sftpfs/sftpfs.go | 19 | ||||
| -rw-r--r-- | internal/wfs/wfs.go | 17 |
3 files changed, 52 insertions, 1 deletions
diff --git a/internal/wfs/osfs/osfs.go b/internal/wfs/osfs/osfs.go index e06c9c6..5b5c224 100644 --- a/internal/wfs/osfs/osfs.go +++ b/internal/wfs/osfs/osfs.go @@ -1,3 +1,20 @@ +// Copyright 2026 Rose Hogenson <r@roseh.moe> +// +// This file is part of ccp. +// +// Ccp is free software: you can redistribute it and/or modify it under the +// terms of the GNU General Public License as published by the Free Software +// Foundation, either version 3 of the License, or (at your option) any later +// version. +// +// Ccp is distributed in the hope that it will be useful, but WITHOUT ANY +// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// ccp. If not, see <https://www.gnu.org/licenses/>. + // Package osfs implements [wfs.FS] backed by the local filesystem. package osfs diff --git a/internal/wfs/sftpfs/sftpfs.go b/internal/wfs/sftpfs/sftpfs.go index 748e4ad..bb4351d 100644 --- a/internal/wfs/sftpfs/sftpfs.go +++ b/internal/wfs/sftpfs/sftpfs.go @@ -1,3 +1,20 @@ +// Copyright 2026 Rose Hogenson <r@roseh.moe> +// +// This file is part of ccp. +// +// Ccp is free software: you can redistribute it and/or modify it under the +// terms of the GNU General Public License as published by the Free Software +// Foundation, either version 3 of the License, or (at your option) any later +// version. +// +// Ccp is distributed in the hope that it will be useful, but WITHOUT ANY +// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// ccp. If not, see <https://www.gnu.org/licenses/>. + // Package sftpfs implements [wfs.FS] using [github.com/pkg/sftp]. package sftpfs @@ -13,11 +30,11 @@ import ( "sync" "github.com/pkg/sftp" - "roseh.moe/cmd/ccp/internal/wfs" "golang.org/x/crypto/ssh" "golang.org/x/crypto/ssh/agent" "golang.org/x/crypto/ssh/knownhosts" "golang.org/x/term" + "roseh.moe/cmd/ccp/internal/wfs" ) var ( diff --git a/internal/wfs/wfs.go b/internal/wfs/wfs.go index 4168b58..10c2077 100644 --- a/internal/wfs/wfs.go +++ b/internal/wfs/wfs.go @@ -1,3 +1,20 @@ +// Copyright 2026 Rose Hogenson <r@roseh.moe> +// +// This file is part of ccp. +// +// Ccp is free software: you can redistribute it and/or modify it under the +// terms of the GNU General Public License as published by the Free Software +// Foundation, either version 3 of the License, or (at your option) any later +// version. +// +// Ccp is distributed in the hope that it will be useful, but WITHOUT ANY +// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// ccp. If not, see <https://www.gnu.org/licenses/>. + // Package wfs implements a "writable file system" in the spirit of [fs.FS]. package wfs |
