Skip to content

Commit

Permalink
more shell completions
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Apr 10, 2024
1 parent 956331a commit 8c5a1b3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Sources/tart/Commands/Export.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Foundation
struct Export: AsyncParsableCommand {
static var configuration = CommandConfiguration(abstract: "Export VM to a compressed .tvm file")

@Argument(help: "Source VM name.")
@Argument(help: "Source VM name.", completion: .custom(completeMachines))
var name: String

@Argument(help: "Path to the destination file.")
Expand Down
2 changes: 1 addition & 1 deletion Sources/tart/Commands/IP.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ enum IPResolutionStrategy: String, ExpressibleByArgument, CaseIterable {
struct IP: AsyncParsableCommand {
static var configuration = CommandConfiguration(abstract: "Get VM's IP address")

@Argument(help: "VM name")
@Argument(help: "VM name", completion: .custom(completeLocalMachines))
var name: String

@Option(help: "Number of seconds to wait for a potential VM booting")
Expand Down
2 changes: 1 addition & 1 deletion Sources/tart/Commands/Push.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Compression
struct Push: AsyncParsableCommand {
static var configuration = CommandConfiguration(abstract: "Push a VM to a registry")

@Argument(help: "local or remote VM name")
@Argument(help: "local or remote VM name", completion: .custom(completeMachines))
var localName: String

@Argument(help: "remote VM name(s)")
Expand Down
2 changes: 1 addition & 1 deletion Sources/tart/Commands/Rename.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Foundation
struct Rename: AsyncParsableCommand {
static var configuration = CommandConfiguration(abstract: "Rename a VM")

@Argument(help: "VM name")
@Argument(help: "VM name", completion: .custom(completeLocalMachines))
var name: String

@Argument(help: "new VM name")
Expand Down
2 changes: 1 addition & 1 deletion Sources/tart/Commands/Set.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Foundation
struct Set: AsyncParsableCommand {
static var configuration = CommandConfiguration(commandName: "set", abstract: "Modify VM's configuration")

@Argument(help: "VM name")
@Argument(help: "VM name", completion: .custom(completeLocalMachines))
var name: String

@Option(help: "Number of VM CPUs")
Expand Down
2 changes: 1 addition & 1 deletion Sources/tart/Commands/Stop.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import SwiftDate
struct Stop: AsyncParsableCommand {
static var configuration = CommandConfiguration(commandName: "stop", abstract: "Stop a VM")

@Argument(help: "VM name", completion: .custom(completeLocalMachines))
@Argument(help: "VM name", completion: .custom(completeRunningMachines))
var name: String

@Option(name: [.short, .long], help: "Seconds to wait for graceful termination before forcefully terminating the VM")
Expand Down

0 comments on commit 8c5a1b3

Please sign in to comment.