98be54b9a3
the directory was starting to get pretty large and it was making it hard to pick concise names for types and variables. this moves the location stuff into a cmd/uplinkng/ulloc package, the filesystem stuff into a cmd/uplinkng/ulfs package, and the testing stuff into a cmd/uplinkng/ultest package. this should make the remaining stuff in cmd/uplinkng only the business logic of how to implement the commands, rather than also including a bunch of helper utilities and scaffolding. Change-Id: Id0901625ebfff9b1cf2dae52366aceb3b6c8f5b6
31 lines
634 B
Go
31 lines
634 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/ulloc"
|
|
)
|
|
|
|
type cmdMetaGet struct {
|
|
projectProvider
|
|
|
|
location ulloc.Location
|
|
entry *string
|
|
}
|
|
|
|
func (c *cmdMetaGet) Setup(a clingy.Arguments, f clingy.Flags) {
|
|
c.projectProvider.Setup(a, f)
|
|
|
|
c.location = a.New("location", "Location of object (sj://BUCKET/KEY)",
|
|
clingy.Transform(ulloc.Parse),
|
|
).(ulloc.Location)
|
|
c.entry = a.New("entry", "Metadata entry to get", clingy.Optional).(*string)
|
|
}
|
|
|
|
func (c *cmdMetaGet) Execute(ctx clingy.Context) error {
|
|
return nil
|
|
}
|