Files
cloudpods/cmd/climc/shell/current.go
2018-08-11 14:28:18 +08:00

15 lines
307 B
Go

package shell
import (
"yunion.io/x/onecloud/pkg/mcclient"
)
func init() {
type CurrentUserOptions struct {
}
R(&CurrentUserOptions{}, "session-show", "show information of current account", func(s *mcclient.ClientSession, args *CurrentUserOptions) error {
printObject(s.ToJson())
return nil
})
}