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 8104a31
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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/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/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 8104a31

Please sign in to comment.