59b8422318
this makes the distinction between an "access name" and an "access value" and talks about which is expected for commands. most are "access name or value". Change-Id: I43c0043a17d37e89ab5f87388ae9e890a8b59958
29 lines
512 B
Go
29 lines
512 B
Go
// Copyright (C) 2021 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/zeebo/clingy"
|
|
|
|
"storj.io/storj/cmd/uplinkng/ulext"
|
|
)
|
|
|
|
type cmdShare struct {
|
|
ex ulext.External
|
|
|
|
access string
|
|
}
|
|
|
|
func newCmdShare(ex ulext.External) *cmdShare {
|
|
return &cmdShare{ex: ex}
|
|
}
|
|
|
|
func (c *cmdShare) Setup(params clingy.Parameters) {
|
|
c.access = params.Flag("access", "Access name or value to use", "").(string)
|
|
}
|
|
|
|
func (c *cmdShare) Execute(ctx clingy.Context) error {
|
|
return nil
|
|
}
|