2021-03-31 16:56:34 +01:00
|
|
|
// Copyright (C) 2021 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/zeebo/clingy"
|
|
|
|
)
|
|
|
|
|
|
|
|
type cmdMetaGet struct {
|
|
|
|
projectProvider
|
|
|
|
|
2021-04-06 20:19:11 +01:00
|
|
|
location string
|
|
|
|
entry *string
|
2021-03-31 16:56:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (c *cmdMetaGet) Setup(a clingy.Arguments, f clingy.Flags) {
|
|
|
|
c.projectProvider.Setup(a, f)
|
|
|
|
|
2021-04-06 20:19:11 +01:00
|
|
|
c.location = a.New("location", "Location of object (sj://BUCKET/KEY)").(string)
|
2021-03-31 16:56:34 +01:00
|
|
|
c.entry = a.New("entry", "Metadata entry to get", clingy.Optional).(*string)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *cmdMetaGet) Execute(ctx clingy.Context) error {
|
|
|
|
return nil
|
|
|
|
}
|