(cmd *cobra.Command, args []string)
| 167 | } |
| 168 | |
| 169 | func fileCatRun(cmd *cobra.Command, args []string) error { |
| 170 | path, err := fixRelativePaths(args[0]) |
| 171 | if err != nil { |
| 172 | return err |
| 173 | } |
| 174 | |
| 175 | fileData := wshrpc.FileData{ |
| 176 | Info: &wshrpc.FileInfo{ |
| 177 | Path: path}} |
| 178 | |
| 179 | err = streamReadFromFile(cmd.Context(), fileData, os.Stdout) |
| 180 | if err != nil { |
| 181 | return fmt.Errorf("reading file: %w", err) |
| 182 | } |
| 183 | |
| 184 | return nil |
| 185 | } |
| 186 | |
| 187 | func fileInfoRun(cmd *cobra.Command, args []string) error { |
| 188 | path, err := fixRelativePaths(args[0]) |
nothing calls this directly
no test coverage detected