Skip to content

Commit

Permalink
Merge pull request #5 from IdeasOnCanvas/enhancement/commandLineRename
Browse files Browse the repository at this point in the history
rename cli target
  • Loading branch information
Patrick-Kladek authored Jan 10, 2018
2 parents fbc749b + 7524e14 commit 605dcf6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,29 @@ In the screenshot below the file is: `$language/iPhone SE-$image.png`. This is a

![](Documentation/Usage.png)

### From the Command Line

* You can either Install `Screenshot Framer` on your computer by copying it to `/usr/local/bin` and run following command

``` bash
cd ~/Developer/MyProject/Screenshots
Screenshot-Framer-CLI -project "./iPhone SE.frame"
```

* To create screenshots for all devices simply pass the whole directory instead of a file

```bash
cd ~/Developer/MyProject/Screenshots
Screenshot-Framer-CLI -project .
```

* You can also copy `Screenshot Framer` to your repository and run it from there

```bash
cd ~/Developer/MyProject/Screenshots
./Screenshot-Framer-CLI -project .
```

### Known Limitations & Bugs
Please keep in mind that this tool was made to automate screenshots for a very specific need, so it might not fit yours. If you find bugs please create an issue first. Pull Requests are very welcome, but we also reserve the right to not merge them, if they don't take the tool into a direction we need. Therefore it's best to first open an issue and discuss your plans, before jumping right in and implementing it.

Expand Down
16 changes: 8 additions & 8 deletions Screenshot Framer.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
CD71C0B02002ABA6002A2550 /* WarningPopoverViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WarningPopoverViewController.swift; sourceTree = "<group>"; };
CD71C0B12002ABA6002A2550 /* WarningPopoverViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = WarningPopoverViewController.xib; sourceTree = "<group>"; };
CD75DDA61FE916E80035952D /* OutputConfig.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OutputConfig.swift; sourceTree = "<group>"; };
CD9395561FF6AC6D00D3D831 /* Screenshot Framer CLI */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "Screenshot Framer CLI"; sourceTree = BUILT_PRODUCTS_DIR; };
CD9395561FF6AC6D00D3D831 /* Screenshot-Framer-CLI */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "Screenshot-Framer-CLI"; sourceTree = BUILT_PRODUCTS_DIR; };
CD9395581FF6AC6D00D3D831 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = "<group>"; };
CD93955D1FF6AE1900D3D831 /* ConsoleIO.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConsoleIO.swift; sourceTree = "<group>"; };
CD93955F1FF6AEAB00D3D831 /* Controller.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Controller.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -219,7 +219,7 @@
children = (
CD5EE03C1FCD557200AD2ED7 /* Screenshot Framer.app */,
CDFF69951FD827B800E652EE /* Screenshot FramerTests.xctest */,
CD9395561FF6AC6D00D3D831 /* Screenshot Framer CLI */,
CD9395561FF6AC6D00D3D831 /* Screenshot-Framer-CLI */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -338,9 +338,9 @@
productReference = CD5EE03C1FCD557200AD2ED7 /* Screenshot Framer.app */;
productType = "com.apple.product-type.application";
};
CD9395551FF6AC6D00D3D831 /* Screenshot Framer CLI */ = {
CD9395551FF6AC6D00D3D831 /* Screenshot-Framer-CLI */ = {
isa = PBXNativeTarget;
buildConfigurationList = CD93955C1FF6AC6D00D3D831 /* Build configuration list for PBXNativeTarget "Screenshot Framer CLI" */;
buildConfigurationList = CD93955C1FF6AC6D00D3D831 /* Build configuration list for PBXNativeTarget "Screenshot-Framer-CLI" */;
buildPhases = (
CD71C0AE2000D270002A2550 /* Swift Lint */,
CD9395521FF6AC6D00D3D831 /* Sources */,
Expand All @@ -351,9 +351,9 @@
);
dependencies = (
);
name = "Screenshot Framer CLI";
name = "Screenshot-Framer-CLI";
productName = "Screenshot Framer CLI";
productReference = CD9395561FF6AC6D00D3D831 /* Screenshot Framer CLI */;
productReference = CD9395561FF6AC6D00D3D831 /* Screenshot-Framer-CLI */;
productType = "com.apple.product-type.tool";
};
CDFF69941FD827B800E652EE /* Screenshot FramerTests */ = {
Expand Down Expand Up @@ -419,7 +419,7 @@
targets = (
CD5EE03B1FCD557200AD2ED7 /* Screenshot Framer */,
CDFF69941FD827B800E652EE /* Screenshot FramerTests */,
CD9395551FF6AC6D00D3D831 /* Screenshot Framer CLI */,
CD9395551FF6AC6D00D3D831 /* Screenshot-Framer-CLI */,
);
};
/* End PBXProject section */
Expand Down Expand Up @@ -799,7 +799,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
CD93955C1FF6AC6D00D3D831 /* Build configuration list for PBXNativeTarget "Screenshot Framer CLI" */ = {
CD93955C1FF6AC6D00D3D831 /* Build configuration list for PBXNativeTarget "Screenshot-Framer-CLI" */ = {
isa = XCConfigurationList;
buildConfigurations = (
CD93955A1FF6AC6D00D3D831 /* Debug */,
Expand Down

0 comments on commit 605dcf6

Please sign in to comment.