Skip to content

Commit 1b68fc5

Browse files
Merge pull request #36 from flyboarder/v1.10
Generate v1.10 API
2 parents 9dd11ac + 3e0547b commit 1b68fc5

File tree

8 files changed

+178764
-12292
lines changed

8 files changed

+178764
-12292
lines changed

node-client/src/api.ts

Lines changed: 12083 additions & 12288 deletions
Large diffs are not rendered by default.

node-client/src/git_push.sh

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
#!/bin/sh
2+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3+
#
4+
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
5+
6+
git_user_id=$1
7+
git_repo_id=$2
8+
release_note=$3
9+
10+
if [ "$git_user_id" = "" ]; then
11+
git_user_id="kubernetes-client"
12+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
13+
fi
14+
15+
if [ "$git_repo_id" = "" ]; then
16+
git_repo_id="typescript"
17+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
18+
fi
19+
20+
if [ "$release_note" = "" ]; then
21+
release_note="Minor update"
22+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
23+
fi
24+
25+
# Initialize the local directory as a Git repository
26+
git init
27+
28+
# Adds the files in the local repository and stages them for commit.
29+
git add .
30+
31+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
32+
git commit -m "$release_note"
33+
34+
# Sets the new remote
35+
git_remote=`git remote`
36+
if [ "$git_remote" = "" ]; then # git remote not defined
37+
38+
if [ "$GIT_TOKEN" = "" ]; then
39+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
40+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
41+
else
42+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
43+
fi
44+
45+
fi
46+
47+
git pull origin master
48+
49+
# Pushes (Forces) the changes in the local repository up to the remote repository
50+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
51+
git push origin master 2>&1 | grep -v 'To https'
52+

node-client/src/package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "kubernetes-client-typescript",
3+
"version": "0.3-SNAPSHOT",
4+
"description": "NodeJS client for kubernetes-client-typescript",
5+
"repository": "kubernetes-client/typescript",
6+
"main": "api.js",
7+
"scripts": {
8+
"postinstall": "typings install",
9+
"clean": "rm -Rf node_modules/ typings/ *.js",
10+
"build": "tsc",
11+
"test": "npm run build && node client.js"
12+
},
13+
"author": "Swagger Codegen Contributors",
14+
"license": "Unlicense",
15+
"dependencies": {
16+
"bluebird": "^3.3.5",
17+
"request": "^2.72.0"
18+
},
19+
"devDependencies": {
20+
"typescript": "^1.8.10",
21+
"typings": "^0.8.1"
22+
}
23+
}

0 commit comments

Comments
 (0)