1
0
mirror of https://github.com/fiatjaf/nak.git synced 2025-04-23 09:59:55 -04:00

add fake fs command that doesn't work when compiling for windows but at least compiles.

This commit is contained in:
fiatjaf 2025-03-19 15:10:17 -03:00
parent db5dafb58a
commit b1a03800e6
2 changed files with 22 additions and 0 deletions

2
fs.go

@ -1,3 +1,5 @@
//go:build !windows
package main
import (

20
fs_windows.go Normal file

@ -0,0 +1,20 @@
//go:build windows
package main
import (
"context"
"fmt"
"github.com/urfave/cli/v3"
)
var fsCmd = &cli.Command{
Name: "fs",
Usage: "mount a FUSE filesystem that exposes Nostr events as files.",
Description: `doesn't work on Windows.`,
DisableSliceFlagSeparator: true,
Action: func(ctx context.Context, c *cli.Command) error {
return fmt.Errorf("this doesn't work on Windows.")
},
}