Marathon icon indicating copy to clipboard operation
Marathon copied to clipboard

marathon list [--packages] or [--scripts]

Open pixyzehn opened this issue 7 years ago • 7 comments

I'd like to introduce simple two options in the list command,

$ marathon list
📦  Packages
-----------
Files ([email protected]:JohnSundell/Files.git)
SwiftyJSON (https://github.com/SwiftyJSON/SwiftyJSON.git)

📄  Scripts
----------
/Users/pixyzehn/Developer/sandbox-for-marathon/fufufufuf.swift
/Users/pixyzehn/Developer/sandbox-for-marathon/hehe.swift

$ marathon list --packages
📦  Packages
-----------
Files ([email protected]:JohnSundell/Files.git)
SwiftyJSON (https://github.com/SwiftyJSON/SwiftyJSON.git)

$ marathon list --scripts
📄  Scripts
----------
/Users/pixyzehn/Developer/sandbox-for-marathon/fufufufuf.swift
/Users/pixyzehn/Developer/sandbox-for-marathon/hehe.swift

$ marathon list --packages --scripts (or --scripts --packages)
📦  Packages
-----------
Files ([email protected]:JohnSundell/Files.git)
SwiftyJSON (https://github.com/SwiftyJSON/SwiftyJSON.git)

📄  Scripts
----------
/Users/pixyzehn/Developer/sandbox-for-marathon/fufufufuf.swift
/Users/pixyzehn/Developer/sandbox-for-marathon/hehe.swift

pixyzehn avatar Apr 05 '17 22:04 pixyzehn

Sure, great idea 👍 But I think the flags should be pluralized, like --packages and --scripts.

JohnSundell avatar Apr 06 '17 16:04 JohnSundell

Sure, I agree! Just updated.

pixyzehn avatar Apr 06 '17 22:04 pixyzehn

I might be able to complete this task. Any hint so I can look around first?

garricn avatar May 22 '17 05:05 garricn

Yeah, we basically just need to check for the --packages or --scipts flag in the ListTask, and then either just list packages or scripts.

JohnSundell avatar Jun 03 '17 11:06 JohnSundell

I have a better handle on the project now. I'm sure I can handle it. I'll be at dub dub this week and I want to land #71 first though.

garricn avatar Jun 03 '17 16:06 garricn

@garricn Lucky! Have fun!

clayellis avatar Jun 03 '17 16:06 clayellis

What do we call them?

dyna-dot avatar May 11 '19 22:05 dyna-dot