An introduction to curl using GitHub's API
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| Logs for https://console.cloud.google.com/cloud-build/builds/11096ed9-98a1-4c36-ac5e-40cf02944cf4?project=675573440409 | |
| ============================================================================== | |
| starting build "11096ed9-98a1-4c36-ac5e-40cf02944cf4" | |
| FETCHSOURCE | |
| Fetching storage object: gs://k8s-staging-artifact-promoter-gcb/source/1603178297.66-44754d982e0b445186d1db6a3be61896.tgz#1603178297795417 | |
| Copying gs://k8s-staging-artifact-promoter-gcb/source/1603178297.66-44754d982e0b445186d1db6a3be61896.tgz#1603178297795417... | |
| / [0 files][ 0.0 B/208.4 KiB] | |
| / [1 files][208.4 KiB/208.4 KiB] |
| from click import command, option, Option, UsageError | |
| class MutuallyExclusiveOption(Option): | |
| mutex_groups = {} | |
| def __init__(self, *args, **kwargs): | |
| opts_list = kwargs.pop('mutex_group', "") | |
| self.mutex_group_key = ','.join(opts_list) | |
| self.mutex_groups[self.mutex_group_key] = 0 | |
| help = kwargs.get('help', '') |
| CC = gcc | |
| CFLAGS = -shared | |
| OBJECTS = api.o dumper.o emitter.o loader.o parser.o reader.o scanner.o writer.o | |
| LIB = libyaml.so | |
| LFLAGS = -shared -Wl,-soname,libyaml.so | |
| %.o: %.c | |
| $(CC) $(CFLAGS) -c -fPIC $< | |
| yaml: $(OBJECTS) | |
| $(CC) $(LFLAGS) -o libyaml.so $(OBJECTS) |
| [F 15] 45.7491 10:36:15 l@k0 ~/prog/foreign/yaml | |
| > ghci Text/Libyaml.hs -L. -lhelper | |
| GHCi, version 7.4.1: http://www.haskell.org/ghc/ :? for help | |
| Loading package ghc-prim ... linking ... done. | |
| Loading package integer-gmp ... linking ... done. | |
| Loading package base ... linking ... done. | |
| Loading object (dynamic) ./libhelper.so ... done | |
| final link ... done | |
| [1 of 1] Compiling Text.Libyaml ( Text/Libyaml.hs, interpreted ) |