rclone: github.com/ncw/rclone/cmd/serve/http Index | Files

package http

import "github.com/ncw/rclone/cmd/serve/http"

Index

Package Files

http.go

Variables

var Command = &cobra.Command{
    Use:   "http remote:path",
    Short: `Serve the remote over HTTP.`,
    Long: "" /* 403 byte string literal not displayed */+
        httplib.Help + vfs.Help,
    Run: func(command *cobra.Command, args []string) {
        cmd.CheckArgs(1, 1, command, args)
        f := cmd.NewFsSrc(args)
        cmd.Run(false, true, command, func() error {
            s := newServer(f, &httpflags.Opt)
            err := s.Serve()
            if err != nil {
                return err
            }
            s.Wait()
            return nil
        })
    },
}

Command definition for cobra

Package http imports 14 packages (graph) and is imported by 4 packages. Updated 2019-06-25. Refresh now. Tools for package owners.