This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from kintone/dev
Release v0.11.0
- Loading branch information
Showing
7 changed files
with
125 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
## How to Build Mac OS X/Linux | ||
#### Step 1: Creating folder to develop | ||
``` | ||
mkdir -p /tmp/dev-cli-kintone/src | ||
``` | ||
Note: "/tmp/dev-cli-kintone" is the path to project at local, can be changed to match with the project at local of you. | ||
|
||
#### Step 2: Creating variable environment GOPATH | ||
|
||
``` | ||
export GOPATH=/tmp/dev-cli-kintone | ||
``` | ||
|
||
#### Step 3: Getting cli-kintone repository | ||
``` | ||
cd ${GOPATH}/src | ||
git clone https://github.com/kintone/cli-kintone.git | ||
``` | ||
|
||
#### Step 4: Install dependencies | ||
``` | ||
cd ${GOPATH}/src/cli-kintone | ||
go get github.com/mattn/gom | ||
sudo ln -s $GOPATH/bin/gom /usr/local/bin/gom # Link package gom to directory "/usr/local/" to use globally | ||
gom -production install | ||
``` | ||
|
||
#### Step 5: Build | ||
``` | ||
mv vendor/ src | ||
gom build | ||
``` | ||
|
||
## Copyright | ||
|
||
Copyright(c) Cybozu, Inc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
## How to Build Windows | ||
#### Step 1: Creating folder to develop | ||
``` | ||
mkdir -p c:\tmp\dev-cli-kintone\src | ||
``` | ||
Note: "c:\tmp\dev-cli-kintone" is the path to project at local, can be changed to match with the project at local of you. | ||
|
||
#### Step 2: Creating variable environment GOPATH | ||
|
||
``` | ||
set GOPATH=c:\tmp\dev-cli-kintone | ||
``` | ||
|
||
#### Step 3: Getting cli-kintone repository | ||
``` | ||
cd %GOPATH%\src | ||
git clone https://github.com/kintone/cli-kintone.git | ||
``` | ||
|
||
#### Step 4: Install dependencies | ||
``` | ||
cd %GOPATH%\src\cli-kintone | ||
go get github.com/mattn/gom | ||
..\..\bin\gom.exe -production install | ||
``` | ||
|
||
#### Step 5: Build | ||
``` | ||
..\..\bin\gom.exe build | ||
``` | ||
|
||
## Copyright | ||
|
||
Copyright(c) Cybozu, Inc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package main | ||
|
||
import ( | ||
"bufio" | ||
"log" | ||
"io" | ||
) | ||
|
||
func removeBOMCharacter(reader io.Reader) io.Reader { | ||
bufferReader := bufio.NewReader(reader) | ||
r, _, err := bufferReader.ReadRune() | ||
if err != nil { | ||
log.Fatal(err) | ||
} | ||
|
||
if r != '\uFEFF' { | ||
bufferReader.UnreadRune() // Not a BOM -- put the rune back | ||
} | ||
return bufferReader | ||
} |