File: export_test.go

package info (click to toggle)
golang-github-juju-cmd 3.0.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 424 kB
  • sloc: makefile: 7
file content (14 lines) | stat: -rw-r--r-- 480 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2017 Canonical Ltd.
// Licensed under the LGPLv3, see LICENSE file for details.

package cmd

func NewVersionCommand(version string, versionDetail interface{}) Command {
	return newVersionCommand(version, versionDetail)
}

func FormatCommand(command Command, super *SuperCommand, title bool, commandSeq []string) string {
	docCmd := &documentationCommand{super: super}
	ref := commandReference{command: command}
	return docCmd.formatCommand(ref, title, commandSeq)
}